summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <gluh@eagle.intranet.mysql.r18.ru>2006-03-28 17:25:19 +0500
committerunknown <gluh@eagle.intranet.mysql.r18.ru>2006-03-28 17:25:19 +0500
commit44517ca04029da19f5a59a3f5856a776b0bad497 (patch)
tree4c11c702a95f21bb362555e3a85cedee371924c4 /sql/opt_range.cc
parentfb17414ba1797943c0050ed65951d709528928b5 (diff)
downloadmariadb-git-44517ca04029da19f5a59a3f5856a776b0bad497.tar.gz
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
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index e9ebd9cbccb..36de27ef3e3 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -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;