SCRUM:
Task 499 'init_connect, init_slave options'
mysql-test/mysql-test-run.sh:
Task 499 'init_connect, init_slave options'
This change needs because mysql-test-run cuts string variable on first space
sql/mysql_priv.h:
Task 499 'init_connect, init_slave options'
sql/mysqld.cc:
Task 499 'init_connect, init_slave options'
sql/protocol.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.h:
Task 499 'init_connect, init_slave options'
sql/slave.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.h:
Task 499 'init_connect, init_slave options'
sql/sql_parse.cc:
Task 499 'init_connect, init_slave options'
sql/sql_show.cc:
Task 499 'init_connect, init_slave options'
2003-07-18 11:11:01 +02:00
|
|
|
#
|
|
|
|
# Test of init_connect variable
|
|
|
|
#
|
|
|
|
|
|
|
|
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;
|
2004-12-16 11:41:52 +01:00
|
|
|
set global init_connect="drop table if exists t1; create table t1(a char(10));\
|
SCRUM:
Task 499 'init_connect, init_slave options'
mysql-test/mysql-test-run.sh:
Task 499 'init_connect, init_slave options'
This change needs because mysql-test-run cuts string variable on first space
sql/mysql_priv.h:
Task 499 'init_connect, init_slave options'
sql/mysqld.cc:
Task 499 'init_connect, init_slave options'
sql/protocol.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.h:
Task 499 'init_connect, init_slave options'
sql/slave.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.h:
Task 499 'init_connect, init_slave options'
sql/sql_parse.cc:
Task 499 'init_connect, init_slave options'
sql/sql_show.cc:
Task 499 'init_connect, init_slave options'
2003-07-18 11:11:01 +02:00
|
|
|
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;
|
2003-12-21 18:39:32 +01:00
|
|
|
--error 2013,2006
|
SCRUM:
Task 499 'init_connect, init_slave options'
mysql-test/mysql-test-run.sh:
Task 499 'init_connect, init_slave options'
This change needs because mysql-test-run cuts string variable on first space
sql/mysql_priv.h:
Task 499 'init_connect, init_slave options'
sql/mysqld.cc:
Task 499 'init_connect, init_slave options'
sql/protocol.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.cc:
Task 499 'init_connect, init_slave options'
sql/set_var.h:
Task 499 'init_connect, init_slave options'
sql/slave.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.cc:
Task 499 'init_connect, init_slave options'
sql/sql_class.h:
Task 499 'init_connect, init_slave options'
sql/sql_parse.cc:
Task 499 'init_connect, init_slave options'
sql/sql_show.cc:
Task 499 'init_connect, init_slave options'
2003-07-18 11:11:01 +02:00
|
|
|
select @a;
|
|
|
|
connection con0;
|
|
|
|
drop table t1;
|