From 8bab9bfa76ad4d6e1ac9ee6b38a375df598d4e52 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 11 Apr 2022 20:19:20 +0200 Subject: [PATCH] Fix wrong SQL for emptying SQLite tables. Closes #1557 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 78b0daa3..84d316e3 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -3049,7 +3049,7 @@ begin end; ngSQLite: begin FSQLSpecifities[spDatabaseDrop] := 'DROP DATABASE %s'; - FSQLSpecifities[spEmptyTable] := 'TRUNCATE '; + FSQLSpecifities[spEmptyTable] := 'DELETE FROM '; FSQLSpecifities[spRenameTable] := 'ALTER TABLE %s RENAME TO %s'; FSQLSpecifities[spRenameView] := FSQLSpecifities[spRenameTable]; FSQLSpecifities[spCurrentUserHost] := 'SELECT CURRENT_USER()';