mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
test suite for bug Bug#3969 (commited separetely because it took too long time to parse it on 3.23)
client/mysqltest.c: allow big commands in mysql-test
This commit is contained in:
@ -59,7 +59,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <violite.h>
|
||||
|
||||
#define MAX_QUERY 65536
|
||||
#define MAX_QUERY 131072
|
||||
#define MAX_COLUMNS 256
|
||||
#define PAD_SIZE 128
|
||||
#define MAX_CONS 128
|
||||
|
10
mysql-test/r/rpl_free_items.result
Normal file
10
mysql-test/r/rpl_free_items.result
Normal file
@ -0,0 +1,10 @@
|
||||
slave stop;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
slave start;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int);
|
||||
drop table t1;
|
||||
drop table t2;
|
1
mysql-test/t/rpl_free_items-slave.opt
Normal file
1
mysql-test/t/rpl_free_items-slave.opt
Normal file
@ -0,0 +1 @@
|
||||
--replicate-wild-ignore-table=test.%
|
20
mysql-test/t/rpl_free_items.test
Normal file
20
mysql-test/t/rpl_free_items.test
Normal file
@ -0,0 +1,20 @@
|
||||
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`;
|
||||
eval $1;
|
||||
enable_query_log;
|
||||
# I have seen the slave crash either now or at shutdown
|
||||
sync_slave_with_master;
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
sync_slave_with_master;
|
Reference in New Issue
Block a user