Skip to content
Permalink
Browse files

Issue #80: Safely accept empty default value for probably non existin…

…g server variable "skip_name_resolve" in user manager.
  • Loading branch information...
ansgarbecker committed Jul 29, 2019
1 parent 7b8d6bc commit 35e9d88f439bd50bc984cbd119cf6046fe351fde
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/usermanager.pas
@@ -323,7 +323,8 @@ function InitPrivList(Values: String): TStringList;

// 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');

0 comments on commit 35e9d88

Please sign in to comment.
You can’t perform that action at this time.