Debian Codegraph @

mysql-test/suite/rpl_nogtid/t/rpl_stm_loaddata_concurrent_innodb.test

raw
1 -- source include/not_ndb_default.inc
2 -- source include/have_binlog_format_statement.inc
3
4 RESET MASTER;
5
6 let $lock_option= CONCURRENT;
7
8 # MTR is not case-sensitive.
9 let $UPPER_STMT_HEAD= LOAD DATA;
10 if ($lock_option)
11 {
12 #if $lock_option is null, an extra blank is added into the statement,
13 #this will change the result of rpl_loaddata test case. so $lock_option
14 #is set only when it is not null.
15 let $UPPER_STMT_HEAD= LOAD DATA $lock_option;
16 }
17
18 #BUG#17233 LOAD DATA INFILE: failure causes mysqld dbug_assert, binlog not flushed
19 CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=INNODB;
20
21 --error ER_DUP_ENTRY
22 eval $UPPER_STMT_HEAD INFILE "../../std_data/words.dat" INTO TABLE t1;
23
24 DROP TABLE t1;
25