aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-07-07 09:22:01 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-07-07 09:22:01 +0000
commitfa84400d288374f9c702757cc619db815a65fefb (patch)
tree11b1afb270ab8b6ee058406bbe1e40710672b63e /phpBB/includes
parent62471fe5813329ebcee8de7d0e93c492ea1f8635 (diff)
downloadforums-fa84400d288374f9c702757cc619db815a65fefb.tar
forums-fa84400d288374f9c702757cc619db815a65fefb.tar.gz
forums-fa84400d288374f9c702757cc619db815a65fefb.tar.bz2
forums-fa84400d288374f9c702757cc619db815a65fefb.tar.xz
forums-fa84400d288374f9c702757cc619db815a65fefb.zip
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_main.php14
1 files changed, 11 insertions, 3 deletions
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