From: jakubvrana Date: Thu, 30 Aug 2007 12:33:13 +0000 (+0000) Subject: BINARY in where() is fine X-Git-Tag: v3.0.0~1163 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=9be9c9abf56ffa5dfb6cc2d63fe8435d23fe3b90;p=adminer.git BINARY in where() is fine git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@350 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/functions.inc.php b/functions.inc.php index df9810cd..885921eb 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")) . " = '" . $mysql->escape_string($val) . "' COLLATE utf8_bin"; //! enum and set + $return[] = idf_escape(bracket_escape($key, "back")) . " = BINARY '" . $mysql->escape_string($val) . "'"; //! enum and set } foreach ((array) $_GET["null"] as $key) { $return[] = idf_escape(bracket_escape($key, "back")) . " IS NULL";