mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#18053 Partitions: crash if null
Bug#18070 Partitions: wrong result on WHERE ... IS NULL removed unnecessary code added handling of NULL values mysql-test/r/partition.result: Bug#18053 Partitions: crash if null Bug#18070 Partitions: wrong result on WHERE ... IS NULL test case mysql-test/t/partition.test: Bug#18053 Partitions: crash if null Bug#18070 Partitions: wrong result on WHERE ... IS NULL test case sql/opt_range.cc: Bug#18053 Partitions: crash if null Bug#18070 Partitions: wrong result on WHERE ... IS NULL initialisation of part_iter.has_null_value sql/sql_partition.h: Bug#18053 Partitions: crash if null Bug#18070 Partitions: wrong result on WHERE ... IS NULL added has_null_value
This commit is contained in:
@ -2296,6 +2296,7 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
|
||||
RANGE_OPT_PARAM *range_par= &prune_param.range_param;
|
||||
|
||||
prune_param.part_info= part_info;
|
||||
prune_param.part_iter.has_null_value= FALSE;
|
||||
|
||||
init_sql_alloc(&alloc, thd->variables.range_alloc_block_size, 0);
|
||||
range_par->mem_root= &alloc;
|
||||
|
Reference in New Issue
Block a user