#19052585 : fixed the problem that default value is not set when it is 0

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7622 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-08-03 05:45:06 +00:00
parent d3a70e65aa
commit fb538bb2e1
8 changed files with 8 additions and 8 deletions

View file

@ -458,7 +458,7 @@ class DBPostgresql extends DB
$size = 0;
$column_schema[] = sprintf('%s %s%s %s %s', $name, $this->column_type[$type], $size ?
'(' . $size . ')' : '', $default ? "default '" . $default . "'" : '', $notnull ?
'(' . $size . ')' : '', isset($default) ? "default '" . $default . "'" : '', $notnull ?
'not null' : '');
if ($primary_key)