1
0
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:
unknown
2004-06-11 16:25:18 +03:00
parent 2df0588981
commit d4c72a852d
4 changed files with 32 additions and 1 deletions

View File

@ -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

View 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;

View File

@ -0,0 +1 @@
--replicate-wild-ignore-table=test.%

View 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;