1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

MySQL: Support foreign keys in NDB storage

This commit is contained in:
Jakub Vrana
2014-11-12 10:13:40 -08:00
parent fe5a81fd08
commit 001bf042b4
2 changed files with 4 additions and 1 deletions

View 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