1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00
git-svn-id: file:///svn/phpbb/trunk@6480 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-10-11 19:56:27 +00:00
parent d7ee6969d2
commit 31463d2ccc
3 changed files with 128 additions and 128 deletions

View File

@@ -373,7 +373,7 @@ foreach ($supported_dbms as $dbms)
$line .= "\t{$column_name} {$column_type} ";
// For hexadecimal values do not use single quotes
if (!is_null($column_data[1]))
if (!is_null($column_data[1]) && substr($column_type, -4) !== 'text')
{
$line .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";
}