From dbce6b5a0f022dbcf495f757bac2ad763ae136df Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 27 Feb 2026 15:17:13 +0100 Subject: [PATCH] fix: wrong SQL on MS SQL when renaming table per table editor Refs #1997 --- source/table_editor.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/table_editor.pas b/source/table_editor.pas index 480861a5..d594347d 100644 --- a/source/table_editor.pas +++ b/source/table_editor.pas @@ -523,7 +523,10 @@ begin end; // Rename table if ObjectExists and (editName.Text <> DBObject.Name) then begin - Rename := DBObject.Connection.SqlProvider.GetSql(qRenameTable, [DBObject.QuotedName, DBObject.Connection.QuoteIdent(editName.Text)]); + Rename := DBObject.Connection.SqlProvider.GetSql(qRenameTable, [ + DBObject.QuotedName(True, False), + DBObject.Connection.QuoteIdent(editName.Text) + ]); DBObject.Connection.Query(Rename); DBObject.Connection.ShowWarnings; end;