mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
MySQL: Use CONVERT() only when searching for non-ASCII (bug #603)
This commit is contained in:
@@ -299,7 +299,7 @@ if (!defined("DRIVER")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function convertSearch($idf, $val, $field) {
|
function convertSearch($idf, $val, $field) {
|
||||||
return (preg_match('~char|text|enum|set~', $field["type"]) && !preg_match("~^utf8~", $field["collation"])
|
return (preg_match('~char|text|enum|set~', $field["type"]) && !preg_match("~^utf8~", $field["collation"]) && preg_match('~[\x80-\xFF]~', $val['val'])
|
||||||
? "CONVERT($idf USING " . charset($this->_conn) . ")"
|
? "CONVERT($idf USING " . charset($this->_conn) . ")"
|
||||||
: $idf
|
: $idf
|
||||||
);
|
);
|
||||||
|
@@ -2,6 +2,7 @@ Adminer 4.6.3-dev:
|
|||||||
Stop session before connecting
|
Stop session before connecting
|
||||||
Fix displaying info about non-alphabetical objects (bug #599)
|
Fix displaying info about non-alphabetical objects (bug #599)
|
||||||
PDO: Support binary fields download
|
PDO: Support binary fields download
|
||||||
|
MySQL: Use CONVERT() only when searching for non-ASCII (bug #603)
|
||||||
|
|
||||||
Adminer 4.6.2 (released 2018-02-20):
|
Adminer 4.6.2 (released 2018-02-20):
|
||||||
Semi-transparent border on table actions
|
Semi-transparent border on table actions
|
||||||
|
Reference in New Issue
Block a user