diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 42f6aa0b8e..e0d6a3f01c 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -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