Merge moksha.com.br:/Users/davi/mysql/bugs/31608-5.1
into moksha.com.br:/Users/davi/mysql/mysql-5.1-runtime
This commit is contained in:
commit
c0d2ce4c88
@ -3063,6 +3063,12 @@ void do_change_user(struct st_command *command)
|
|||||||
sizeof(change_user_args)/sizeof(struct command_arg),
|
sizeof(change_user_args)/sizeof(struct command_arg),
|
||||||
',');
|
',');
|
||||||
|
|
||||||
|
if (cur_con->stmt)
|
||||||
|
{
|
||||||
|
mysql_stmt_close(cur_con->stmt);
|
||||||
|
cur_con->stmt= NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ds_user.length)
|
if (!ds_user.length)
|
||||||
dynstr_set(&ds_user, mysql->user);
|
dynstr_set(&ds_user, mysql->user);
|
||||||
|
|
||||||
|
@ -34,8 +34,8 @@ NULL
|
|||||||
SELECT GET_LOCK('bug31418', 1);
|
SELECT GET_LOCK('bug31418', 1);
|
||||||
GET_LOCK('bug31418', 1)
|
GET_LOCK('bug31418', 1)
|
||||||
1
|
1
|
||||||
SELECT IS_USED_LOCK('bug31418');
|
SELECT IS_USED_LOCK('bug31418') = CONNECTION_ID();
|
||||||
IS_USED_LOCK('bug31418')
|
IS_USED_LOCK('bug31418') = CONNECTION_ID()
|
||||||
1
|
1
|
||||||
change_user
|
change_user
|
||||||
SELECT IS_FREE_LOCK('bug31418');
|
SELECT IS_FREE_LOCK('bug31418');
|
||||||
|
@ -28,7 +28,7 @@ SELECT @@session.sql_big_selects;
|
|||||||
SELECT IS_FREE_LOCK('bug31418');
|
SELECT IS_FREE_LOCK('bug31418');
|
||||||
SELECT IS_USED_LOCK('bug31418');
|
SELECT IS_USED_LOCK('bug31418');
|
||||||
SELECT GET_LOCK('bug31418', 1);
|
SELECT GET_LOCK('bug31418', 1);
|
||||||
SELECT IS_USED_LOCK('bug31418');
|
SELECT IS_USED_LOCK('bug31418') = CONNECTION_ID();
|
||||||
--echo change_user
|
--echo change_user
|
||||||
--change_user
|
--change_user
|
||||||
SELECT IS_FREE_LOCK('bug31418');
|
SELECT IS_FREE_LOCK('bug31418');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user