mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Make detection of disabled users more stable. See http://www.heidisql.com/forum.php?t=7433#p7442
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user