diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-06-15 14:56:35 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-06-15 14:56:35 +0300 |
commit | 451a5e510b2733fde176be53b45a915f85c53152 (patch) | |
tree | e9fd6f71bf7257eac77bf30ec0558fd225180552 /sql/opt_range.cc | |
parent | 52eab5dca2daa9577673079e767b4a75d2641796 (diff) | |
download | mariadb-git-451a5e510b2733fde176be53b45a915f85c53152.tar.gz |
A fix for a bug which hits the optimiser when trying to group keys
for a seemingly impoosbile conds in WHERE....
This crashed MySQL in 4.0.2
Docs/manual.texi:
A fix for a bug which hits the optimiser when trying to group keys
for a seemingly impoosbile conds in WHERE....
mysql-test/r/select.result:
A fix for a bug which hits the optimiser when trying to group keys
for a seemingly impoosbile conds in WHERE....
mysql-test/t/select.test:
A fix for a bug which hits the optimiser when trying to group keys
for a seemingly impoosbile conds in WHERE....
sql/opt_range.cc:
A fix for a bug which hits the optimiser when trying to group keys
for a seemingly impoosbile conds in WHERE....
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 1d30437e15a..6692a55c2ef 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1291,7 +1291,7 @@ and_all_keys(SEL_ARG *key1,SEL_ARG *key2,uint clone_flag) } if (key1->type == SEL_ARG::MAYBE_KEY) { - key1->left= &null_element; key1->next=0; + key1->right=key1->left= &null_element; key1->next=key1->prev=0; } for (next=key1->first(); next ; next=next->next) { |