fix timestamp display, fix default display to remove double "'"

This commit is contained in:
Miles Lott 2001-09-29 15:44:17 +00:00
parent c98c5faa6e
commit 663e83b66e

View File

@ -147,6 +147,7 @@
$sTranslated = "'type' => 'float', 'precision' => $iPrecision";
break;
case 'datetime':
case 'timestamp':
$sTranslated = "'type' => 'timestamp'";
break;
case 'varchar':
@ -300,6 +301,7 @@
$default = '';
$nullcomma = '';
}
$default = ereg_replace("''","'",$default);
$this->sCol[] = "\t\t\t\t'" . $colname . "' => array(" . $type . ',' . $null . $nullcomma . $default . '),' . "\n";
}