summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-01-25 16:10:48 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-01-25 16:10:48 +0100
commit70815ed5b9edbb26795589bc4d8d29b500350302 (patch)
treee4dfb5ef8729a54ba226c6cc8ebb952fa9c9d79a /sql/opt_range.cc
parentfdb9b05cbba648fdc411afb3e39495f37321f084 (diff)
parent7e8a58020bc2b0dcac95937a0178401ecc55f6ad (diff)
downloadmariadb-git-70815ed5b9edbb26795589bc4d8d29b500350302.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index c47da283e9c..c3b82827291 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -9654,6 +9654,8 @@ and_all_keys(RANGE_OPT_PARAM *param, SEL_ARG *key1, SEL_ARG *key2,
}
if (key1->type == SEL_ARG::MAYBE_KEY)
{
+ if (key2->type == SEL_ARG::KEY_RANGE)
+ return key2;
key1->right= key1->left= &null_element;
key1->next= key1->prev= 0;
}