2005-04-02 05:00:14 +02:00
|
|
|
# Can't be tested with embedded server
|
2009-03-05 14:35:03 +01:00
|
|
|
--source include/not_embedded.inc
|
2005-04-02 05:00:14 +02:00
|
|
|
|
2009-03-05 14:35:03 +01:00
|
|
|
# Save the initial number of concurrent sessions
|
|
|
|
--source include/count_sessions.inc
|
|
|
|
|
|
|
|
# Bug#8471 IP address with mask fail when skip-name-resolve is on
|
2005-02-15 05:33:14 +01:00
|
|
|
GRANT ALL ON test.* TO mysqltest_1@'127.0.0.1/255.255.255.255';
|
|
|
|
SHOW GRANTS FOR mysqltest_1@'127.0.0.1/255.255.255.255';
|
|
|
|
REVOKE ALL ON test.* FROM mysqltest_1@'127.0.0.1/255.255.255.255';
|
|
|
|
DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
|
2005-07-28 02:22:47 +02:00
|
|
|
|
|
|
|
# End of 4.1 tests
|
2005-09-22 21:03:53 +02:00
|
|
|
|
2009-03-05 14:35:03 +01:00
|
|
|
# Bug#13407 Remote connecting crashes server
|
2005-09-22 21:03:53 +02:00
|
|
|
# Server crashed when one used USER() function in connection for which
|
|
|
|
# was impossible to obtain peer hostname.
|
2009-11-25 11:53:23 +01:00
|
|
|
connect (con1, localhost, root, , test, $MASTER_MYPORT, );
|
2005-09-22 21:03:53 +02:00
|
|
|
--replace_column 1 #
|
2009-03-03 21:34:18 +01:00
|
|
|
SELECT USER();
|
2009-03-04 13:33:56 +01:00
|
|
|
# We are only interested in the fact that statement below doesn't
|
|
|
|
# crash server.
|
|
|
|
--disable_result_log
|
2009-03-03 21:34:18 +01:00
|
|
|
SHOW PROCESSLIST;
|
2009-03-04 13:33:56 +01:00
|
|
|
--enable_result_log
|
2005-09-22 21:03:53 +02:00
|
|
|
connection default;
|
2009-03-03 21:34:18 +01:00
|
|
|
disconnect con1;
|
2009-03-05 14:35:03 +01:00
|
|
|
|
|
|
|
# Wait till all disconnects are completed
|
|
|
|
--source include/wait_until_count_sessions.inc
|
|
|
|
|
2010-03-31 15:12:37 +02:00
|
|
|
--echo #
|
|
|
|
--echo # Bug #37168: Missing variable - skip_name_resolve
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
SHOW VARIABLES LIKE 'skip_name_resolve';
|
|
|
|
SHOW GLOBAL VARIABLES LIKE 'skip_name_resolve';
|
|
|
|
SHOW SESSION VARIABLES LIKE 'skip_name_resolve';
|
|
|
|
|
|
|
|
SELECT @@skip_name_resolve;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
|
|
SELECT @@LOCAL.skip_name_resolve;
|
|
|
|
SELECT @@GLOBAL.skip_name_resolve;
|
|
|
|
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
|
|
SET @@skip_name_resolve=0;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
|
|
SET @@LOCAL.skip_name_resolve=0;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
|
|
SET @@GLOBAL.skip_name_resolve=0;
|
|
|
|
|
|
|
|
--echo End of 5.1 tests
|