From: Nicolas Boisselier Date: Mon, 2 May 2016 00:56:01 +0000 (+0100) Subject: sqlite truncate X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=098b96970daeee15eaa5862b0147d0645cf68668;p=nb.git sqlite truncate --- diff --git a/lib/php/db/types/sqlite.php b/lib/php/db/types/sqlite.php index 476138cb..f6d566a7 100644 --- a/lib/php/db/types/sqlite.php +++ b/lib/php/db/types/sqlite.php @@ -8,6 +8,7 @@ $DB_TYPES['sqlite'] = array ( 'quote' => function(&$v) { return "'".str_replace("'","''",$v)."'"; }, 'table.sql' => 'SELECT sql FROM sqlite_master WHERE name=\'\'', +'table.truncate' => 'DELETE FROM \'\'', 'sqliteCreateFunction' => array ( 'ip2int' => function ($value) { return ip2long($value); },