mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
- should fix some Firebird issues ( can't believe that nobody found this until now )
git-svn-id: file:///svn/phpbb/trunk@6954 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -545,7 +545,19 @@ class install_convert extends module
|
||||
// Make some short variables accessible, for easier referencing
|
||||
$convert->convertor_tag = basename($convert->options['tag']);
|
||||
$convert->src_table_prefix = $convert->options['table_prefix'];
|
||||
$convert->truncate_statement = ($db->sql_layer != 'sqlite') ? 'TRUNCATE TABLE ' : 'DELETE FROM ';
|
||||
|
||||
|
||||
switch ($db->sql_layer)
|
||||
{
|
||||
case 'sqlite':
|
||||
case 'firebird':
|
||||
$convert->truncate_statement = 'DELETE FROM ';
|
||||
break;
|
||||
|
||||
default:
|
||||
$convert->truncate_statement = 'TRUNCATE TABLE ');
|
||||
break;
|
||||
}
|
||||
|
||||
$get_info = false;
|
||||
|
||||
|
Reference in New Issue
Block a user