Use correct callback function in MySQLAuth
The JSON diagnostics function used the non-JSON version of the callback.
This commit is contained in:
parent
dcf9d7f152
commit
39dff20a0a
@ -674,7 +674,7 @@ json_t* mysql_auth_diagnostic_json(const SERV_LISTENER *port)
|
||||
sqlite3* handle = get_handle(instance);
|
||||
|
||||
if (sqlite3_exec(handle, "SELECT user, host FROM " MYSQLAUTH_USERS_TABLE_NAME,
|
||||
diag_cb, rval, &err) != SQLITE_OK)
|
||||
diag_cb_json, rval, &err) != SQLITE_OK)
|
||||
{
|
||||
MXS_ERROR("Failed to print users: %s", err);
|
||||
sqlite3_free(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user