polardbxengine/mysql-test/suite/rpl/t/rpl_row_loaddata_concurrent...

25 lines
742 B
Plaintext

-- source include/not_ndb_default.inc
-- source include/not_group_replication_plugin.inc
-- source include/have_binlog_format_row.inc
let $lock_option= CONCURRENT;
# MTR is not case-sensitive.
let $UPPER_STMT_HEAD= LOAD DATA;
if ($lock_option)
{
#if $lock_option is null, an extra blank is added into the statement,
#this will change the result of rpl_loaddata test case. so $lock_option
#is set only when it is not null.
let $UPPER_STMT_HEAD= LOAD DATA $lock_option;
}
#BUG#17233 LOAD DATA INFILE: failure causes mysqld dbug_assert, binlog not flushed
CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=INNODB;
--error ER_DUP_ENTRY
eval $UPPER_STMT_HEAD INFILE "../../std_data/words.dat" INTO TABLE t1;
DROP TABLE t1;