1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix for BUG#20023: mysql_change_user() resets the value

of SQL_BIG_SELECTS.

The bug was that SQL_BIG_SELECTS was not properly set
in COM_CHANGE_USER.

The fix is to update SQL_BIG_SELECTS properly.


sql/mysql_priv.h:
  Cleanup: make prepare_new_connection_state() private for module.
sql/sql_class.cc:
  Update THD::options with the respect to SQL_BIG_SELECTS
  in COM_CHANGE_USER.
sql/sql_connect.cc:
  Cleanup: make prepare_new_connection_state() private for module.
tests/mysql_client_test.c:
  Add a test case BUG#20023.
This commit is contained in:
unknown
2007-10-10 17:57:01 +04:00
parent 45f590d206
commit 3b4b925ea7
4 changed files with 179 additions and 3 deletions

View File

@@ -933,7 +933,7 @@ bool login_connection(THD *thd)
NET *net= &thd->net;
Security_context *sctx= thd->security_ctx;
DBUG_ENTER("login_connection");
DBUG_PRINT("info", ("handle_one_connection called by thread %lu",
DBUG_PRINT("info", ("login_connection called by thread %lu",
thd->thread_id));
net->no_send_error= 0;
@@ -1003,7 +1003,7 @@ void end_connection(THD *thd)
Initialize THD to handle queries
*/
void prepare_new_connection_state(THD* thd)
static void prepare_new_connection_state(THD* thd)
{
Security_context *sctx= thd->security_ctx;