mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
fix: wrong SQL on MS SQL when renaming table per table editor
Refs #1997
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user