bug #1475949, removing the default value

This commit is contained in:
Marc Delisle
2006-05-15 17:23:15 +00:00
parent c542c2ee09
commit 5b8668f181
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$ $Id$
$Source$ $Source$
2006-05-15 Marc Delisle <lem9@users.sourceforge.net>
* libraries/Table.class.php: bug #1475949, removing the default value
2006-05-15 Michal Čihař <michal@cihar.com> 2006-05-15 Michal Čihař <michal@cihar.com>
* scripts/setup.php: Compatibility with security tokens (bug #1488453). * scripts/setup.php: Compatibility with security tokens (bug #1488453).
* scripts/setup.php: Fix detection of writable config (bug #1488447). * scripts/setup.php: Fix detection of writable config (bug #1488447).

View File

@@ -307,7 +307,9 @@ class PMA_Table {
if (strtoupper($default) == 'NULL') { if (strtoupper($default) == 'NULL') {
$query .= ' DEFAULT NULL'; $query .= ' DEFAULT NULL';
} else { } else {
$query .= ' DEFAULT \'' . PMA_sqlAddslashes($default) . '\''; if (strlen($default)) {
$query .= ' DEFAULT \'' . PMA_sqlAddslashes($default) . '\'';
}
} }
} }