bug #1163595, problem 6

This commit is contained in:
Marc Delisle
2005-04-01 20:59:46 +00:00
parent effac6b69f
commit 01a27e8d26

View File

@@ -2541,7 +2541,8 @@ if (typeof(document.getElementById) != 'undefined'
if ($default_current_timestamp && strtoupper($full_field_type) == 'TIMESTAMP') {
$query .= ' DEFAULT CURRENT_TIMESTAMP';
} elseif (!empty($default)) {
// 0 is empty in PHP
} elseif (!empty($default) || $default == '0') {
if (strtoupper($default) == 'NULL') {
$query .= ' DEFAULT NULL';
} else {