Make detection of disabled users more stable. See http://www.heidisql.com/forum.php?t=7433#p7442

This commit is contained in:
Ansgar Becker
2011-01-03 23:21:17 +00:00
parent a8f5310e3c
commit 6921e6e189

View File

@ -232,7 +232,7 @@ begin
FUsers := MainForm.ActiveConnection.GetCol(
'SELECT CONCAT('+QuoteIdent('user')+', '+esc('@')+', '+QuoteIdent('host')+') '+
'FROM '+QuoteIdent('mysql')+'.'+QuoteIdent('user')+' '+
'WHERE '+QuoteIdent('Password')+'!='+esc('!')+' '+
'WHERE LENGTH('+QuoteIdent('Password')+') IN (0, 16, 41) '+
'ORDER BY LOWER('+QuoteIdent('user')+'), LOWER('+QuoteIdent('host')+')');
InvalidateVT(listUsers, VTREE_NOTLOADED, False);
FPrivObjects := TPrivObjList.Create(TPrivComparer.Create, True);