#95, changed data column size

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40105
This commit is contained in:
ondrej.zara
2010-05-13 08:59:51 +00:00
parent 93d7a568ea
commit 4ea8622c30
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -39,7 +39,7 @@
$table = $row["TABLE_NAME"];
$xml .= '<table name="'.$table.'">';
$comment = (isset($row["TABLE_COMMENT"]) ? $row["TABLE_COMMENT"] : "");
if ($comment) { $xml .= '<comment>'.$comment.'</comment>'; }
if ($comment) { $xml .= '<comment>'.htmlspecialchars($comment).'</comment>'; }
$q = "SELECT * FROM COLUMNS WHERE TABLE_NAME = '".$table."' AND TABLE_SCHEMA = '".$db."'";
$result2 = mysql_query($q);
@@ -54,7 +54,7 @@
$xml .= '<row name="'.$name.'" null="'.$null.'" autoincrement="'.$ai.'">';
$xml .= '<datatype>'.strtoupper($type).'</datatype>';
$xml .= '<default>'.$def.'</default>';
if ($comment) { $xml .= '<comment>'.$comment.'</comment>'; }
if ($comment) { $xml .= '<comment>'.htmlspecialchars($comment).'</comment>'; }
/* fk constraints */
$q = "SELECT