mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
573227ec73
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'
24 lines
460 B
Text
24 lines
460 B
Text
select hex(@a);
|
|
hex(@a)
|
|
NULL
|
|
select hex(@a);
|
|
hex(@a)
|
|
610063
|
|
set global init_connect="set @a=2;set @b=3";
|
|
select @a, @b;
|
|
@a @b
|
|
2 3
|
|
set GLOBAL init_connect=DEFAULT;
|
|
select @a;
|
|
@a
|
|
NULL
|
|
set global init_connect="create table t1(a char(10));\
|
|
insert into t1 values ('\0');insert into t1 values('abc')";
|
|
select hex(a) from t1;
|
|
hex(a)
|
|
00
|
|
616263
|
|
set GLOBAL init_connect="adsfsdfsdfs";
|
|
select @a;
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
drop table t1;
|