summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_mgm.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/partition_mgm.test')
-rw-r--r--mysql-test/t/partition_mgm.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/t/partition_mgm.test b/mysql-test/t/partition_mgm.test
index 68da4a5b390..524a2e04b25 100644
--- a/mysql-test/t/partition_mgm.test
+++ b/mysql-test/t/partition_mgm.test
@@ -52,3 +52,27 @@ alter table t1 REORGANIZE partition p1 INTO
partition p12 values in (3,4));
drop table t1;
+#
+# Verification tests for bug#14326
+#
+--error ER_PARSE_ERROR
+CREATE TABLE t1 (a INT)
+/*!50100 PARTITION BY HASH (a)
+/* Test
+ of multi-line
+ comment */
+PARTITIONS 5 */;
+CREATE TABLE t1 (a INT)
+/*!50100 PARTITION BY HASH (a)
+-- with a single line comment embedded
+PARTITIONS 5 */;
+SHOW CREATE TABLE t1;
+DROP TABLE t1;
+CREATE TABLE t1 (a INT)
+/*!50100 PARTITION BY HASH (a)
+PARTITIONS 5 */;
+SHOW CREATE TABLE t1;
+DROP TABLE t1;
+CREATE TABLE t1 (a INT) /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */;
+SHOW CREATE TABLE t1;
+DROP TABLE t1;