MySQL: Fix editing rows by binary values (bug #371)
This commit is contained in:
parent
0fdedcbaa5
commit
4d8667db7b
|
@ -385,7 +385,7 @@ function where($where, $fields = array()) {
|
||||||
: " = " . unconvert_field($fields[$key], q($val))
|
: " = " . unconvert_field($fields[$key], q($val))
|
||||||
) // LIKE because of floats but slow with ints, in MS SQL because of text
|
) // LIKE because of floats but slow with ints, in MS SQL because of text
|
||||||
; //! enum and set
|
; //! enum and set
|
||||||
if ($jush == "sql" && preg_match("~[^ -@]~", $val)) { // not just [a-z] to catch non-ASCII characters
|
if ($jush == "sql" && preg_match('~char|text~', $fields[$key]["type"]) && preg_match("~[^ -@]~", $val)) { // not just [a-z] to catch non-ASCII characters
|
||||||
$return[] = "$column = " . q($val) . " COLLATE utf8_bin";
|
$return[] = "$column = " . q($val) . " COLLATE utf8_bin";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Adminer 4.0.4-dev:
|
Adminer 4.0.4-dev:
|
||||||
Display time of the select command
|
Display time of the select command
|
||||||
Improve gzip export ratio (bug #387)
|
Improve gzip export ratio (bug #387)
|
||||||
|
MySQL: Fix editing rows by binary values (bug #371)
|
||||||
MySQL: Respect daylight saving time in dump, bug since Adminer 3.6.4
|
MySQL: Respect daylight saving time in dump, bug since Adminer 3.6.4
|
||||||
SQLite: Display auto-created unique indexes, bug since Adminer 3.5.0
|
SQLite: Display auto-created unique indexes, bug since Adminer 3.5.0
|
||||||
Editor: Fix login() method, bug since Adminer 4.0.0
|
Editor: Fix login() method, bug since Adminer 4.0.0
|
||||||
|
|
Loading…
Reference in a new issue