mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #80: Safely accept empty default value for probably non existing server variable "skip_name_resolve" in user manager.
This commit is contained in:
@@ -323,7 +323,8 @@ begin
|
||||
|
||||
// Load user@host list
|
||||
try
|
||||
tmp := FConnection.GetVar('SHOW VARIABLES LIKE '+FConnection.EscapeString('skip_name_resolve'), 1);
|
||||
|
||||
tmp := FConnection.GetSessionVariable('skip_name_resolve');
|
||||
SkipNameResolve := LowerCase(tmp) = 'on';
|
||||
|
||||
FConnection.Query('FLUSH PRIVILEGES');
|
||||
|
||||
Reference in New Issue
Block a user