Skip to content

Commit

Permalink
Respect empty default value of type set
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 10, 2013
1 parent 0cd81fd commit 35b6491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/drivers/mysql.inc.php
Expand Up @@ -416,7 +416,7 @@ function fields($table) {
"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
Expand Down

0 comments on commit 35b6491

Please sign in to comment.