From: jakubvrana Date: Mon, 27 Aug 2007 12:24:29 +0000 (+0000) Subject: COLLATE utf8_bin rather than BINARY in where() X-Git-Tag: v3.0.0~1164 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=543cecd4142bff16f3661d6edb5477495db17ad1;p=adminer.git COLLATE utf8_bin rather than BINARY in where() git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@349 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/functions.inc.php b/functions.inc.php index 885921eb..df9810cd 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -141,7 +141,7 @@ function where() { global $mysql; $return = array(); foreach ((array) $_GET["where"] as $key => $val) { - $return[] = idf_escape(bracket_escape($key, "back")) . " = BINARY '" . $mysql->escape_string($val) . "'"; //! enum and set + $return[] = idf_escape(bracket_escape($key, "back")) . " = '" . $mysql->escape_string($val) . "' COLLATE utf8_bin"; //! enum and set } foreach ((array) $_GET["null"] as $key) { $return[] = idf_escape(bracket_escape($key, "back")) . " IS NULL";