mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Quote column in WHERE clause of automated query for finding locked tables in database. Closes #173
This commit is contained in:
@ -2267,7 +2267,7 @@ begin
|
||||
FSQLSpecifities[spKillQuery] := 'KILL QUERY %d';
|
||||
|
||||
if ServerVersionInt >= 50124 then
|
||||
FSQLSpecifities[spLockedTables] := 'SHOW OPEN TABLES FROM %s WHERE in_use!=0';
|
||||
FSQLSpecifities[spLockedTables] := 'SHOW OPEN TABLES FROM %s WHERE '+QuoteIdent('in_use')+'!=0';
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user