Debian Codegraph @

mysql-test/suite/rpl/t/rpl_row_loaddata_concurrent_innodb.test

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