Skip to content

Commit 65265cb

Browse files
author
Aditya A
committed
Bug#20160327 OPTIMIZE TABLE REMOVES THE DATA DIRECTORY IN PARTITIONS
Post push failure fix
1 parent 07a2746 commit 65265cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

mysql-test/r/partition_innodb.result

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,4 +859,19 @@ t1 CREATE TABLE `t1` (
859859
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB,
860860
PARTITION p1 VALUES IN (1) DATA DIRECTORY = 'MYSQL_TMP_DIR/temp_dir' ENGINE = InnoDB) */
861861
t1#P#p1.ibd
862+
ALTER TABLE t1 ADD extracol VARCHAR(32) NULL;
863+
SHOW CREATE TABLE t1;
864+
Table Create Table
865+
t1 CREATE TABLE `t1` (
866+
`f1` int(10) unsigned NOT NULL AUTO_INCREMENT,
867+
`f2` mediumtext NOT NULL,
868+
`f3` char(100) NOT NULL,
869+
`f4` tinyint(1) unsigned NOT NULL,
870+
`extracol` varchar(32) DEFAULT NULL,
871+
PRIMARY KEY (`f1`,`f4`)
872+
) ENGINE=InnoDB DEFAULT CHARSET=latin1
873+
/*!50100 PARTITION BY LIST (`f4`)
874+
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB,
875+
PARTITION p1 VALUES IN (1) DATA DIRECTORY = 'MYSQL_TMP_DIR/temp_dir' ENGINE = InnoDB) */
876+
t1#P#p1.ibd
862877
DROP TABLE t1;

0 commit comments

Comments
 (0)