mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
d7d88e59f5
mysqltest program should be really multithreaded to perform this test with the embedded server. So this test disabled until we redo mysqltest this way mysql-test/t/init_connect.test: test can't work properly with the embedded server yet
38 lines
904 B
Text
38 lines
904 B
Text
#
|
|
# Test of init_connect variable
|
|
#
|
|
|
|
# should work with embedded server after mysqltest is fixed
|
|
-- source include/not_embedded.inc
|
|
connect (con0,localhost,root,,);
|
|
connection con0;
|
|
select hex(@a);
|
|
connect (con1,localhost,user_1,,);
|
|
connection con1;
|
|
select hex(@a);
|
|
connection con0;
|
|
set global init_connect="set @a=2;set @b=3";
|
|
connect (con2,localhost,user_1,,);
|
|
connection con2;
|
|
select @a, @b;
|
|
connection con0;
|
|
set GLOBAL init_connect=DEFAULT;
|
|
connect (con3,localhost,user_1,,);
|
|
connection con3;
|
|
select @a;
|
|
connection con0;
|
|
set global init_connect="create table t1(a char(10));\
|
|
insert into t1 values ('\0');insert into t1 values('abc')";
|
|
connect (con4,localhost,user_1,,);
|
|
connection con4;
|
|
select hex(a) from t1;
|
|
connection con0;
|
|
set GLOBAL init_connect="adsfsdfsdfs";
|
|
connect (con5,localhost,user_1,,);
|
|
connection con5;
|
|
--error 2013,2006
|
|
select @a;
|
|
connection con0;
|
|
drop table t1;
|
|
|
|
# End of 4.1 tests
|