mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
MySQL: Support index algorithms with MEMORY and NDB engines
This commit is contained in:
@@ -367,6 +367,10 @@ if (!defined('Adminer\DRIVER')) {
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
function indexAlgorithms(array $tableStatus): array {
|
||||
return (preg_match('~^(MEMORY|NDB)$~', $tableStatus["Engine"]) ? array("HASH", "BTREE") : array());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -558,6 +562,7 @@ if (!defined('Adminer\DRIVER')) {
|
||||
$return[$name]["columns"][] = $row["Column_name"];
|
||||
$return[$name]["lengths"][] = ($row["Index_type"] == "SPATIAL" ? null : $row["Sub_part"]);
|
||||
$return[$name]["descs"][] = null;
|
||||
$return[$name]["algorithm"] = $row["Index_type"];
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user