]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Support STORED GENERATED
authorJakub Vrana <jakub@vrana.cz>
Wed, 21 Aug 2019 10:23:08 +0000 (12:23 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 21 Aug 2019 10:23:08 +0000 (12:23 +0200)
adminer/drivers/mysql.inc.php

index a388203677d94393f56dcdafddf94aca36189906..f6dde5171376256a2dc99cead832ab0bbaa1b9ff 100644 (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;