From: jakubvrana Date: Wed, 23 Sep 2009 09:40:56 +0000 (+0000) Subject: Foreign key may not be unique X-Git-Tag: v3.0.0~404 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=ee24ba24e141417dfbf6c1bd1a78e646118a86ad;p=adminer.git Foreign key may not be unique git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1130 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- 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();