]> git.joonet.de Git - adminer.git/commitdiff
Foreign key may not be unique
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 23 Sep 2009 09:40:56 +0000 (09:40 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 23 Sep 2009 09:40:56 +0000 (09:40 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1130 7c3ca157-0c34-0410-bff1-cbf682f78f5c

editor/include/adminer.inc.php

index 454aef6daa0cbd63f66397073ce4e7058059da5e..18ac631b85712ec9fa547e97f4959c3557d4db52 100644 (file)
@@ -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();