mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
62471fe581
commit
fa84400d28
1 changed files with 11 additions and 3 deletions
|
@ -354,11 +354,19 @@ class acp_main
|
||||||
|
|
||||||
$tables = array(CONFIRM_TABLE, SESSIONS_TABLE);
|
$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)
|
foreach ($tables as $table)
|
||||||
{
|
{
|
||||||
$sql = "TRUNCATE TABLE $table";
|
switch ($db->sql_layer)
|
||||||
$db->sql_query($sql);
|
{
|
||||||
|
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
|
// let's restore the admin session
|
||||||
|
|
Loading…
Add table
Reference in a new issue