~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/bugs/t/rpl_bug23533.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#############################################################
 
2
# Author: Serge Kozlov <skozlov@mysql.com>
 
3
# Date:   02/26/2008
 
4
# Purpose: testing bug report
 
5
#  Bug#23533: CREATE SELECT max_binlog_cache_size test 
 
6
#  case needed
 
7
#############################################################
 
8
 
 
9
--source include/have_innodb.inc
 
10
--source include/have_binlog_format_row.inc
 
11
--source include/master-slave.inc
 
12
 
 
13
 
 
14
--disable_warnings
 
15
DROP TABLE IF EXISTS t1,t2;
 
16
--enable_warnings
 
17
 
 
18
SET AUTOCOMMIT=0;
 
19
SET GLOBAL max_binlog_cache_size=4096;
 
20
SHOW VARIABLES LIKE 'max_binlog_cache_size';
 
21
 
 
22
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b TEXT, PRIMARY KEY(a)) ENGINE=InnoDB;
 
23
 
 
24
--disable_query_log
 
25
let $i= 1000;
 
26
while ($i)
 
27
{
 
28
  eval INSERT INTO t1 VALUES($i, REPEAT('x', 4096));
 
29
  dec $i;
 
30
}
 
31
--enable_query_log
 
32
 
 
33
SELECT COUNT(*) FROM t1;
 
34
 
 
35
# Copied data from t1 into t2 large than max_binlog_cache_size
 
36
START TRANSACTION;
 
37
--error 1534
 
38
CREATE TABLE t2 SELECT * FROM t1;
 
39
COMMIT;
 
40
SHOW TABLES LIKE 't%';
 
41
 
 
42
 
 
43
# 5.1 End of Test