polardbxengine/mysql-test/suite/rpl/t/rpl_free_items.test

26 lines
653 B
Plaintext

--source include/not_group_replication_plugin.inc
source include/master-slave.inc;
create table t1 (a int);
create table t2 (a int);
disable_query_log;
SET @query="INSERT INTO t2 SELECT * FROM t1 WHERE a REGEXP \"0\"";
let $1 = 2000;
while ($1)
{
eval SET @query=concat(@query, " OR a REGEXP '$1'");
dec $1;
}
let $1=`select @query`;
--error 0,ER_STACK_OVERRUN_NEED_MORE
eval $1;
enable_query_log;
# I have seen the slave crash either now or at shutdown
--source include/sync_slave_sql_with_master.inc
connection master;
drop table t1;
drop table t2;
--source include/sync_slave_sql_with_master.inc
# End of 4.1 tests
--source include/rpl_end.inc