From 576dd76aa81787f71e038efd9e00713b7a44b3c5 Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Tue, 6 Oct 2009 17:01:59 +0200 Subject: BUG#47837, Duplicate field names were allowed in both column list partitioning and key partitioning, added check to give error in this case --- mysql-test/t/partition_column.test | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mysql-test/t/partition_column.test') diff --git a/mysql-test/t/partition_column.test b/mysql-test/t/partition_column.test index 5eef85b4fa2..1c7e8d59895 100644 --- a/mysql-test/t/partition_column.test +++ b/mysql-test/t/partition_column.test @@ -8,6 +8,17 @@ drop table if exists t1; --enable_warnings +# +# BUG#47837, Crash when two same fields in column list processing +# +--error ER_SAME_NAME_PARTITION_FIELD +create table t1 (a int, b int) +partition by key (a,a); +--error ER_SAME_NAME_PARTITION_FIELD +create table t1 (a int, b int) +partition by list column_list(a,a) +( partition p values in (column_list(1,1))); + # # BUG#47838, List partitioning have problems with <= and >= # -- cgit v1.2.1