mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Allow spaces between privileges (fixes gh-67)
This commit is contained in:
@@ -463,7 +463,7 @@ if (!defined("DRIVER")) {
|
|||||||
"auto_increment" => ($row["Extra"] == "auto_increment"),
|
"auto_increment" => ($row["Extra"] == "auto_increment"),
|
||||||
"on_update" => (preg_match('~^on update (.+)~i', $row["Extra"], $match) ? $match[1] : ""), //! available since MySQL 5.1.23
|
"on_update" => (preg_match('~^on update (.+)~i', $row["Extra"], $match) ? $match[1] : ""), //! available since MySQL 5.1.23
|
||||||
"collation" => $row["Collation"],
|
"collation" => $row["Collation"],
|
||||||
"privileges" => array_flip(explode(",", $row["Privileges"])),
|
"privileges" => array_flip(preg_split('~, *~', $row["Privileges"])),
|
||||||
"comment" => $row["Comment"],
|
"comment" => $row["Comment"],
|
||||||
"primary" => ($row["Key"] == "PRI"),
|
"primary" => ($row["Key"] == "PRI"),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user