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
commit6b00231421ad954d207dd9a48518234145eb71a3 (patch)
treef12dadf57dcd02f4e4ec56fee2c1eaa645fa3ece /sql/opt_range.cc
parent9b224e9180d26aa5b7e087537255c60c5c061ad3 (diff)
downloadmariadb-git-6b00231421ad954d207dd9a48518234145eb71a3.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();