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

Support MariaDB virtual columns

This commit is contained in:
Jakub Vrana
2019-08-19 18:37:59 +02:00
parent 67b84d1167
commit 306e8733e7

View File

@@ -555,7 +555,8 @@ if (!defined("DRIVER")) {
"privileges" => array_flip(preg_split('~, *~', $row["Privileges"])), "privileges" => array_flip(preg_split('~, *~', $row["Privileges"])),
"comment" => $row["Comment"], "comment" => $row["Comment"],
"primary" => ($row["Key"] == "PRI"), "primary" => ($row["Key"] == "PRI"),
"generated" => preg_match('~ GENERATED$~', $row["Extra"]), // 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"]),
); );
} }
return $return; return $return;