summaryrefslogtreecommitdiff
path: root/mysql-test/suite/bugs/t/rpl_bug23533.test
blob: 337dddcef3d378b3cbde9260bd441ad636d5288c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#############################################################
#  Bug#23533: CREATE SELECT max_binlog_cache_size test 
#  case needed
#############################################################

--source include/have_innodb.inc
--source include/have_binlog_format_row.inc
--source include/master-slave.inc

SET AUTOCOMMIT=0;
SET GLOBAL max_binlog_cache_size=4096;
SHOW VARIABLES LIKE 'max_binlog_cache_size';

CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b TEXT, PRIMARY KEY(a)) ENGINE=InnoDB;

--disable_query_log
let $i= 1000;
while ($i)
{
  eval INSERT INTO t1 VALUES($i, REPEAT('x', 4096));
  dec $i;
}
--enable_query_log

SELECT COUNT(*) FROM t1;

# Copied data from t1 into t2 large than max_binlog_cache_size
START TRANSACTION;
--error 1534
CREATE TABLE t2 SELECT * FROM t1;
COMMIT;
SHOW TABLES LIKE 't%';


# 5.1 End of Test
--source include/rpl_end.inc