mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Safe 9 lines of code by introducing new server specific snippets spEmptyTable and spCurrentUserHost.
This commit is contained in:
@ -3298,10 +3298,7 @@ begin
|
||||
EnableProgress(Objects.Count);
|
||||
try
|
||||
for TableOrView in Objects do begin
|
||||
case TableOrView.Connection.Parameters.NetTypeGroup of
|
||||
ngMySQL: TableOrView.Connection.Query('TRUNCATE ' + TableOrView.QuotedName);
|
||||
ngMSSQL: TableOrView.Connection.Query('DELETE FROM ' + TableOrView.QuotedName);
|
||||
end;
|
||||
TableOrView.Connection.Query(TableOrView.Connection.GetSQLSpecifity(spEmptyTable) + TableOrView.QuotedName);
|
||||
ProgressStep;
|
||||
end;
|
||||
actRefresh.Execute;
|
||||
|
Reference in New Issue
Block a user