Quote column in WHERE clause of automated query for finding locked tables in database. Closes #173

This commit is contained in:
Ansgar Becker
2018-03-01 20:15:04 +01:00
parent ed5b39724f
commit 194f26bfac

View File

@ -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;