mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed access privilege bug in query cache.
Change tests to use database 'mysqltest' instead of 'foo' Add option to not print access denied messages to check_table_access()
This commit is contained in:
@ -30,6 +30,7 @@ void send_error(NET *net, uint sql_errno, const char *err)
|
||||
err ? err : net->last_error[0] ?
|
||||
net->last_error : "NULL"));
|
||||
|
||||
query_cache_abort(net);
|
||||
if (thd)
|
||||
thd->query_error = 1; // needed to catch query errors during replication
|
||||
if (!err)
|
||||
@ -102,9 +103,9 @@ net_printf(NET *net, uint errcode, ...)
|
||||
DBUG_ENTER("net_printf");
|
||||
DBUG_PRINT("enter",("message: %u",errcode));
|
||||
|
||||
if(thd) thd->query_error = 1;
|
||||
// if we are here, something is wrong :-)
|
||||
|
||||
if (thd)
|
||||
thd->query_error = 1; // if we are here, something is wrong :-)
|
||||
query_cache_abort(net); // Safety
|
||||
va_start(args,errcode);
|
||||
format=ER(errcode);
|
||||
offset= net->return_errno ? 2 : 0;
|
||||
|
Reference in New Issue
Block a user