From 543cecd4142bff16f3661d6edb5477495db17ad1 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 27 Aug 2007 12:24:29 +0000 Subject: [PATCH] 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 --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";