mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / t / partition_binlog_stmt.test
blobc426de9f3035085fe11ba2dfac222006a60756a5
1 --source include/have_partition.inc
2 --source include/have_binlog_format_statement.inc
4 --disable_warnings
5 DROP TABLE IF EXISTS t1;
6 --enable_warnings
8 --echo #
9 --echo # Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
10 --echo #            partitioned MyISAM table
11 --write_file init_file.txt
12 abcd
13 EOF
15 CREATE TABLE t1
16 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
17  name TINYBLOB NOT NULL,
18  modified TIMESTAMP DEFAULT '0000-00-00 00:00:00',
19  INDEX namelocs (name(255))) ENGINE = MyISAM
20 PARTITION BY HASH(id) PARTITIONS 2;
22 LOAD DATA LOCAL INFILE 'init_file.txt'
23 INTO TABLE t1 (name);
25 --remove_file init_file.txt
26 DROP TABLE t1;