summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-04-17 02:05:09 +0400
committerunknown <sergefp@mysql.com>2005-04-17 02:05:09 +0400
commit5ae922976865852e169822913fde389892dea739 (patch)
treef12dadf57dcd02f4e4ec56fee2c1eaa645fa3ece /sql/opt_range.cc
parent7c495c1a0f50d1890bbb983391954220eb2cc55e (diff)
downloadmariadb-git-5ae922976865852e169822913fde389892dea739.tar.gz
Fix for BUG#9348: when computing union of two intervals set lower bound to
minimum of lower bounds of two joined intervals. mysql-test/r/range.result: Testcase for BUG#9348 mysql-test/t/range.test: Testcase for BUG#9348
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 d25901e56b1..e2cae0598a0 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -1683,6 +1683,7 @@ key_or(SEL_ARG *key1,SEL_ARG *key2)
last=last->next;
key1=key1->tree_delete(save);
}
+ last->copy_min(tmp);
if (last->copy_min(key2) || last->copy_max(key2))
{ // Full range
key1->free_tree();