1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 09:04:02 +02:00

MySQL: Support STORED GENERATED

This commit is contained in:
Jakub Vrana
2019-08-21 12:23:08 +02:00
parent 3b056fe308
commit f692b6498f

View File

@@ -555,8 +555,8 @@ if (!defined("DRIVER")) {
"privileges" => array_flip(preg_split('~, *~', $row["Privileges"])),
"comment" => $row["Comment"],
"primary" => ($row["Key"] == "PRI"),
// https://mariadb.com/kb/en/library/show-columns/, https://dev.mysql.com/doc/refman/8.0/en/show-columns.html
"generated" => preg_match('~^(VIRTUAL|PERSISTENT)~', $row["Extra"]),
// https://mariadb.com/kb/en/library/show-columns/, https://github.com/vrana/adminer/pull/359#pullrequestreview-276677186
"generated" => preg_match('~^(VIRTUAL|PERSISTENT|STORED)~', $row["Extra"]),
);
}
return $return;