1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 13:35:13 +02:00

restore firebird/sqlite support. TODO - the DBAL should handle this

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9718 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2009-07-07 09:22:01 +00:00
parent 62471fe581
commit fa84400d28

View File

@ -354,11 +354,19 @@ class acp_main
$tables = array(CONFIRM_TABLE, SESSIONS_TABLE);
// DELETE would probably take a lot longer if we're dealing with a runaway table
foreach ($tables as $table)
{
$sql = "TRUNCATE TABLE $table";
$db->sql_query($sql);
switch ($db->sql_layer)
{
case 'sqlite':
case 'firebird':
$db->sql_query("DELETE FROM $table");
break;
default:
$db->sql_query("TRUNCATE TABLE $table");
break;
}
}
// let's restore the admin session