mirror of
https://github.com/vrana/adminer.git
synced 2026-02-26 08:31:32 +01:00
MySQL 5.0.32 returns DEFAULT '' for int NOT NULL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@574 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -70,7 +70,7 @@ function fields($table) {
|
||||
"type" => $match[1],
|
||||
"length" => $match[2],
|
||||
"unsigned" => ltrim($match[3] . $match[4]),
|
||||
"default" => $row["Default"],
|
||||
"default" => (strlen($row["Default"]) || ereg("char", $match[1]) ? $row["Default"] : null),
|
||||
"null" => ($row["Null"] == "YES"),
|
||||
"auto_increment" => ($row["Extra"] == "auto_increment"),
|
||||
"collation" => $row["Collation"],
|
||||
|
||||
Reference in New Issue
Block a user