mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
Added checks for no NULL values in VALUES LESS THAN, added tests for no MAXVALUE in VALUES IN
This commit is contained in:
parent
540015aac8
commit
f3f4e41c37
5 changed files with 46 additions and 19 deletions
|
|
@ -1992,7 +1992,7 @@ int partition_info::fix_parser_data(THD *thd)
|
|||
partition_element *part_elem;
|
||||
part_elem_value *val;
|
||||
uint num_elements;
|
||||
uint i= 0, j;
|
||||
uint i= 0, j, k;
|
||||
int result;
|
||||
DBUG_ENTER("partition_info::fix_parser_data");
|
||||
|
||||
|
|
@ -2020,6 +2020,15 @@ int partition_info::fix_parser_data(THD *thd)
|
|||
my_error(ER_PARTITION_COLUMN_LIST_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
for (k= 0; k < num_columns; k++)
|
||||
{
|
||||
part_column_list_val *col_val= &val->col_val_array[k];
|
||||
if (col_val->null_value && part_type == RANGE_PARTITION)
|
||||
{
|
||||
my_error(ER_NULL_IN_VALUES_LESS_THAN, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue