Commit a73e2cb2 authored by Mattias Jonsson's avatar Mattias Jonsson

Bug#13500478 63623: TEST CASE PARTITION_BINLOG_STMT

CREATES A FILE IN AN IMPROPER LOCATION.

Fixed by using $MYSQLTEST_VARDIR, as proposed by
Davi Arnaut.

Thank you Davi!
parent e9b05db6
...@@ -8,6 +8,6 @@ name TINYBLOB NOT NULL, ...@@ -8,6 +8,6 @@ name TINYBLOB NOT NULL,
modified TIMESTAMP DEFAULT '0000-00-00 00:00:00', modified TIMESTAMP DEFAULT '0000-00-00 00:00:00',
INDEX namelocs (name(255))) ENGINE = MyISAM INDEX namelocs (name(255))) ENGINE = MyISAM
PARTITION BY HASH(id) PARTITIONS 2; PARTITION BY HASH(id) PARTITIONS 2;
LOAD DATA LOCAL INFILE 'init_file.txt' LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/init_file.txt'
INTO TABLE t1 (name); INTO TABLE t1 (name);
DROP TABLE t1; DROP TABLE t1;
...@@ -8,7 +8,7 @@ DROP TABLE IF EXISTS t1; ...@@ -8,7 +8,7 @@ DROP TABLE IF EXISTS t1;
--echo # --echo #
--echo # Bug#51851: Server with SBR locks mutex twice on LOAD DATA into --echo # Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
--echo # partitioned MyISAM table --echo # partitioned MyISAM table
--write_file init_file.txt --write_file $MYSQLTEST_VARDIR/tmp/init_file.txt
abcd abcd
EOF EOF
...@@ -19,8 +19,9 @@ CREATE TABLE t1 ...@@ -19,8 +19,9 @@ CREATE TABLE t1
INDEX namelocs (name(255))) ENGINE = MyISAM INDEX namelocs (name(255))) ENGINE = MyISAM
PARTITION BY HASH(id) PARTITIONS 2; PARTITION BY HASH(id) PARTITIONS 2;
LOAD DATA LOCAL INFILE 'init_file.txt' --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
eval LOAD DATA LOCAL INFILE '$MYSQLTEST_VARDIR/tmp/init_file.txt'
INTO TABLE t1 (name); INTO TABLE t1 (name);
--remove_file init_file.txt --remove_file $MYSQLTEST_VARDIR/tmp/init_file.txt
DROP TABLE t1; DROP TABLE t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment