Loading mysql-test/r/partition.result +4 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,10 @@ t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) DROP TABLE t1; CREATE TABLE t1 (a int) PARTITION BY RANGE(a) (PARTITION p0 VALUES LESS THAN (NULL)); ERROR 42000: Not allowed to use NULL value in VALUES LESS THAN near '))' at line 3 create table t1 (s1 int auto_increment primary key) partition by list (s1) (partition p1 values in (1), Loading mysql-test/t/partition.test +5 −0 Original line number Diff line number Diff line Loading @@ -965,6 +965,11 @@ PARTITION BY LIST (a) SHOW CREATE TABLE t1; DROP TABLE t1; --error 1064 CREATE TABLE t1 (a int) PARTITION BY RANGE(a) (PARTITION p0 VALUES LESS THAN (NULL)); # # Bug#18753 Partitions: auto_increment fails # Loading sql/share/errmsg.txt +3 −0 Original line number Diff line number Diff line Loading @@ -5826,3 +5826,6 @@ ER_NDB_CANT_SWITCH_BINLOG_FORMAT eng "The NDB cluster engine does not support changing the binlog format on the fly yet" ER_PARTITION_NO_TEMPORARY eng "Cannot create temporary table with partitions" ER_NULL_IN_VALUES_LESS_THAN eng "Not allowed to use NULL value in VALUES LESS THAN" swe "Det r inte tilltet att anvnda NULL-vrden i VALUES LESS THAN" sql/sql_yacc.yy +5 −0 Original line number Diff line number Diff line Loading @@ -3721,6 +3721,11 @@ part_func_max: yyerror(ER(ER_PARTITION_MAXVALUE_ERROR)); YYABORT; } if (Lex->part_info->curr_part_elem->has_null_value) { yyerror(ER(ER_NULL_IN_VALUES_LESS_THAN)); YYABORT; } } ; Loading Loading
mysql-test/r/partition.result +4 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,10 @@ t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) DROP TABLE t1; CREATE TABLE t1 (a int) PARTITION BY RANGE(a) (PARTITION p0 VALUES LESS THAN (NULL)); ERROR 42000: Not allowed to use NULL value in VALUES LESS THAN near '))' at line 3 create table t1 (s1 int auto_increment primary key) partition by list (s1) (partition p1 values in (1), Loading
mysql-test/t/partition.test +5 −0 Original line number Diff line number Diff line Loading @@ -965,6 +965,11 @@ PARTITION BY LIST (a) SHOW CREATE TABLE t1; DROP TABLE t1; --error 1064 CREATE TABLE t1 (a int) PARTITION BY RANGE(a) (PARTITION p0 VALUES LESS THAN (NULL)); # # Bug#18753 Partitions: auto_increment fails # Loading
sql/share/errmsg.txt +3 −0 Original line number Diff line number Diff line Loading @@ -5826,3 +5826,6 @@ ER_NDB_CANT_SWITCH_BINLOG_FORMAT eng "The NDB cluster engine does not support changing the binlog format on the fly yet" ER_PARTITION_NO_TEMPORARY eng "Cannot create temporary table with partitions" ER_NULL_IN_VALUES_LESS_THAN eng "Not allowed to use NULL value in VALUES LESS THAN" swe "Det r inte tilltet att anvnda NULL-vrden i VALUES LESS THAN"
sql/sql_yacc.yy +5 −0 Original line number Diff line number Diff line Loading @@ -3721,6 +3721,11 @@ part_func_max: yyerror(ER(ER_PARTITION_MAXVALUE_ERROR)); YYABORT; } if (Lex->part_info->curr_part_elem->has_null_value) { yyerror(ER(ER_NULL_IN_VALUES_LESS_THAN)); YYABORT; } } ; Loading