closes issue #98

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40117
This commit is contained in:
ondrej.zara
2011-02-04 12:31:30 +00:00
parent f819c4b3e9
commit c9bb3bf87c
+7 -1
View File
@@ -48,7 +48,13 @@
$type = $row["COLUMN_TYPE"];
$comment = (isset($row["COLUMN_COMMENT"]) ? $row["COLUMN_COMMENT"] : "");
$null = ($row["IS_NULLABLE"] == "YES" ? "1" : "0");
$def = $row["COLUMN_DEFAULT"];
if (preg_match("/binary/i",$row["COLUMN_TYPE"])) {
$def = bin2hex($row["COLUMN_DEFAULT"]);
} else {
$def = $row["COLUMN_DEFAULT"];
}
$ai = (preg_match("/auto_increment/i",$row["EXTRA"]) ? "1" : "0");
if ($def == "NULL") { $def = ""; }
$xml .= '<row name="'.$name.'" null="'.$null.'" autoincrement="'.$ai.'">';