PT-244 Fixed --data-dir with partitions

Made DATA DIRECTORY to be inserted at the correct place, not at the end
of the create table query.
This commit is contained in:
Carlos Salguero
2018-01-16 15:57:06 -03:00
parent 5d192e8c60
commit 7c1c99d9ca
3 changed files with 138 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
DROP DATABASE IF EXISTS test;
CREATE DATABASE test;
USE test;
CREATE TABLE t3 (
c INT PRIMARY KEY AUTO_INCREMENT
) ENGINE=InnoDB PARTITION BY HASH(c) PARTITIONS 4;
INSERT INTO t3 VALUES (1), (2), (3), (4), (5);