Use correct callback function in MySQLAuth
The JSON diagnostics function used the non-JSON version of the callback.
This commit is contained in:
@ -674,7 +674,7 @@ json_t* mysql_auth_diagnostic_json(const SERV_LISTENER *port)
|
|||||||
sqlite3* handle = get_handle(instance);
|
sqlite3* handle = get_handle(instance);
|
||||||
|
|
||||||
if (sqlite3_exec(handle, "SELECT user, host FROM " MYSQLAUTH_USERS_TABLE_NAME,
|
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);
|
MXS_ERROR("Failed to print users: %s", err);
|
||||||
sqlite3_free(err);
|
sqlite3_free(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user