]> git.joonet.de Git - adminer.git/commitdiff
Respect empty default value of type set
authorJakub Vrana <jakub@vrana.cz>
Thu, 10 Jan 2013 06:57:13 +0000 (22:57 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 10 Jan 2013 06:57:13 +0000 (22:57 -0800)
adminer/drivers/mysql.inc.php

index 9f6392a8bc62efa30d291af11e1cb35526cbd101..c59e96950bd9c45dac75d21dd6951c3dab9a0e46 100644 (file)
@@ -416,7 +416,7 @@ if (!defined("DRIVER")) {
                                "type" => $match[1],
                                "length" => $match[2],
                                "unsigned" => ltrim($match[3] . $match[4]),
-                               "default" => ($row["Default"] != "" || ereg("char", $match[1]) ? $row["Default"] : null),
+                               "default" => ($row["Default"] != "" || ereg("char|set", $match[1]) ? $row["Default"] : null),
                                "null" => ($row["Null"] == "YES"),
                                "auto_increment" => ($row["Extra"] == "auto_increment"),
                                "on_update" => (eregi('^on update (.+)', $row["Extra"], $match) ? $match[1] : ""), //! available since MySQL 5.1.23