From ee24ba24e141417dfbf6c1bd1a78e646118a86ad Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 23 Sep 2009 09:40:56 +0000 Subject: [PATCH] Foreign key may not be unique git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1130 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editor/include/adminer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 454aef6d..18ac631b 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -89,7 +89,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 // find all used ids $ids = array(); foreach ($rows as $row) { - $ids[$row[$key]] = $connection->quote($row[$key]); + $ids[$row[$key]] = "BINARY " . $connection->quote($row[$key]); } // uses constant number of queries to get the descriptions, join would be complex, multiple queries would be slow $descriptions = array(); -- 2.39.5