MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/share/mysql-test/r/change_user.result
grant select on test.* to test_nopw;
grant select on test.* to test_oldpw identified by password "09301740536db389";
grant select on test.* to test_newpw identified by "newpw";
select user(), current_user(), database();
user()	current_user()	database()
root@localhost	root@localhost	test
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<root@localhost>	<root@localhost>	test
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_nopw@localhost>	<test_nopw@%>	NULL
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_oldpw@localhost>	<test_oldpw@%>	NULL
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_newpw@localhost>	<test_newpw@%>	NULL
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<root@localhost>	<root@localhost>	NULL
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_nopw@localhost>	<test_nopw@%>	test
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_oldpw@localhost>	<test_oldpw@%>	test
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<test_newpw@localhost>	<test_newpw@%>	test
select concat('<', user(), '>'), concat('<', current_user(), '>'), database();
concat('<', user(), '>')	concat('<', current_user(), '>')	database()
<root@localhost>	<root@localhost>	test
drop user test_nopw;
drop user test_oldpw;
drop user test_newpw;
Bug#20023
SELECT @@session.sql_big_selects;
@@session.sql_big_selects
1
SELECT @@global.max_join_size;
@@global.max_join_size
HA_POS_ERROR
change_user
SELECT @@session.sql_big_selects;
@@session.sql_big_selects
1
SELECT @@global.max_join_size;
@@global.max_join_size
HA_POS_ERROR
SET @@global.max_join_size = 10000;
SET @@session.max_join_size = default;
change_user
SELECT @@session.sql_big_selects;
@@session.sql_big_selects
0
SET @@global.max_join_size = 18446744073709551615;
SET @@session.max_join_size = default;
change_user
SELECT @@session.sql_big_selects;
@@session.sql_big_selects
1
Bug#31418
SELECT IS_FREE_LOCK('bug31418');
IS_FREE_LOCK('bug31418')
1
SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
NULL
SELECT GET_LOCK('bug31418', 1);
GET_LOCK('bug31418', 1)
1
SELECT IS_USED_LOCK('bug31418') = CONNECTION_ID();
IS_USED_LOCK('bug31418') = CONNECTION_ID()
1
change_user
SELECT IS_FREE_LOCK('bug31418');
IS_FREE_LOCK('bug31418')
1
SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
NULL
FLUSH STATUS;
Value of com_select did not change