From 9bf599f3f8ce4e4dbdb17723646a2e510e7df608 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 4 Jan 2022 19:11:55 +0100 Subject: [PATCH] Support renaming SQLite tables in database tab. Closes #1427 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 1423db37..dac9a90e 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -2975,7 +2975,7 @@ begin ngSQLite: begin FSQLSpecifities[spDatabaseDrop] := 'DROP DATABASE %s'; FSQLSpecifities[spEmptyTable] := 'TRUNCATE '; - FSQLSpecifities[spRenameTable] := 'RENAME TABLE %s TO %s'; + FSQLSpecifities[spRenameTable] := 'ALTER TABLE %s RENAME TO %s'; FSQLSpecifities[spRenameView] := FSQLSpecifities[spRenameTable]; FSQLSpecifities[spCurrentUserHost] := 'SELECT CURRENT_USER()'; FSQLSpecifities[spLikeCompare] := '%s LIKE %s';