Permalink
Browse files

Quote column in WHERE clause of automated query for finding locked ta…

…bles in database. Closes #173
  • Loading branch information...
ansgarbecker committed Mar 1, 2018
1 parent ed5b397 commit 194f26bfacb970f098c9ae1b8071685f45b76ed8
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/dbconnection.pas
View
@@ -2267,7 +2267,7 @@ procedure TMySQLConnection.DoAfterConnect;
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;

0 comments on commit 194f26b

Please sign in to comment.