]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Support foreign keys in NDB storage
authorJakub Vrana <jakub@vrana.cz>
Wed, 12 Nov 2014 18:13:40 +0000 (10:13 -0800)
committerJakub Vrana <jakub@vrana.cz>
Wed, 12 Nov 2014 18:13:40 +0000 (10:13 -0800)
adminer/drivers/mysql.inc.php
changes.txt

index 341c32a698ac448a342a183b6ea688f285fab298..d8e355cc230ee9735697ad743393f4f8cbb678e4 100644 (file)
@@ -447,7 +447,9 @@ if (!defined("DRIVER")) {
        * @return bool
        */
        function fk_support($table_status) {
-               return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"]);
+               global $connection;
+               return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"])
+                       || (preg_match('~NDB~i', $table_status["Engine"]) && version_compare($connection->server_info, '5.6') >= 0);
        }
 
        /** Get information about fields
index e3c1067e6bc56a4597086c2c3853f69b6d83f6a5..95fca1697ece49a38e0ab575b6649052fe79b4a1 100644 (file)
@@ -9,6 +9,7 @@ Send 403 for auth error
 Report offline and other AJAX errors (bug #419)
 Add links to documentation on table status page
 MySQL: Use utf8mb4 if available
+MySQL: Support foreign keys in NDB storage
 PostgreSQL: Materialized views
 SQLite: Support CURRENT_* default values (bug #417)
 Elasticsearch: Use where in select