MySQL Auth with dbname check

MySQL Auth with dbname check

Unknown database ‘xxxxx’ is returned to client

Proper error number is still missing and also com_change_user need to
be fixed
This commit is contained in:
MassimilianoPinto
2014-10-16 19:17:15 +02:00
parent a82d18f517
commit 2dfa01fccc
5 changed files with 69 additions and 39 deletions

View File

@ -220,9 +220,9 @@ GWPROTOCOL *funcs;
dbnames_loaded = mysql_users_load_dbs(service);
LOGIF(LM, (skygw_log_write(
LOGFILE_MESSAGE,
"Loaded %d MySQL Databases.",
dbnames_loaded)));
LOGFILE_MESSAGE,
"Loaded %d MySQL Databases.",
dbnames_loaded)));
} else {
/* Generic users table */
service->users = users_alloc();