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;