2010-03-29 17:13:53 +02:00
|
|
|
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 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;
|
2007-10-16 12:29:22 -03:00
|
|
|
Bug#20023
|
|
|
|
SELECT @@session.sql_big_selects;
|
|
|
|
@@session.sql_big_selects
|
|
|
|
1
|
|
|
|
SELECT @@global.max_join_size;
|
|
|
|
@@global.max_join_size
|
2008-03-07 21:14:34 +03:00
|
|
|
HA_POS_ERROR
|
2007-10-16 12:29:22 -03:00
|
|
|
change_user
|
|
|
|
SELECT @@session.sql_big_selects;
|
|
|
|
@@session.sql_big_selects
|
|
|
|
1
|
|
|
|
SELECT @@global.max_join_size;
|
|
|
|
@@global.max_join_size
|
2008-03-07 21:14:34 +03:00
|
|
|
HA_POS_ERROR
|
2007-10-16 12:29:22 -03:00
|
|
|
SET @@global.max_join_size = 10000;
|
|
|
|
SET @@session.max_join_size = default;
|
|
|
|
change_user
|
|
|
|
SELECT @@session.sql_big_selects;
|
|
|
|
@@session.sql_big_selects
|
|
|
|
0
|
Assorted post-merge fixes, clean-up, integration, compat with 5.6.
43233/55794.
mysql-test/r/change_user.result:
Don't use -1 integer wrap around. It used to work, but now we do what's
actually in the documentation. In tests, we now use DEFAULT or the
numeral equivalent (as we do in the 5.6 tests).
mysql-test/r/key_cache.result:
Can't drop default key case is an error now, not a warning, for compatibility
with 5.6.
mysql-test/r/variables.result:
Can't drop default key case is an error now, not a warning, for compatibility
with 5.6.
mysql-test/t/change_user.test:
Don't use -1 integer wrap around. It used to work, but now we do what's
actually in the documentation. In tests, we now use DEFAULT or the
numeral equivalent (as we do in the 5.6 tests).
mysql-test/t/key_cache.test:
Can't drop default key case is an error now, not a warning, for compatibility
with 5.6.
mysql-test/t/variables.test:
Can't drop default key case is an error now, not a warning, for compatibility
with 5.6.
sql/mysqld.cc:
0 is a legal (albeit magic) value: "drop key cache."
sql/set_var.cc:
bound_unsigned() can go now, it was just a kludge until things are done
The Right Way, which they are now.
Can't drop default key case is an error now, not a warning, for compatibility
with 5.6.
tests/mysql_client_test.c:
Don't use -1 integer wrap around. It used to work, but now we do what's
actually in the documentation. In tests, we now use DEFAULT or the
numeral equivalent (as we do in the 5.6 tests).
2010-11-25 03:11:05 +00:00
|
|
|
SET @@global.max_join_size = 18446744073709551615;
|
2007-10-16 12:29:22 -03:00
|
|
|
SET @@session.max_join_size = default;
|
|
|
|
change_user
|
|
|
|
SELECT @@session.sql_big_selects;
|
|
|
|
@@session.sql_big_selects
|
|
|
|
1
|
2007-12-28 00:15:29 +01:00
|
|
|
SELECT @@global.max_join_size;
|
|
|
|
@@global.max_join_size
|
|
|
|
18446744073709551615
|
|
|
|
SELECT @@session.max_join_size;
|
|
|
|
@@session.max_join_size
|
|
|
|
18446744073709551615
|
2007-10-16 12:29:22 -03:00
|
|
|
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
|
2007-10-17 16:43:30 -03:00
|
|
|
SELECT IS_USED_LOCK('bug31418') = CONNECTION_ID();
|
|
|
|
IS_USED_LOCK('bug31418') = CONNECTION_ID()
|
2007-10-16 12:29:22 -03:00
|
|
|
1
|
|
|
|
change_user
|
|
|
|
SELECT IS_FREE_LOCK('bug31418');
|
|
|
|
IS_FREE_LOCK('bug31418')
|
|
|
|
1
|
|
|
|
SELECT IS_USED_LOCK('bug31418');
|
|
|
|
IS_USED_LOCK('bug31418')
|
|
|
|
NULL
|
2009-01-15 12:56:05 +03:00
|
|
|
FLUSH STATUS;
|
2009-01-31 22:04:57 -02:00
|
|
|
Value of com_select did not change
|