1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Backported fix from 4.0 which caused core dumps for some complex queries.

Docs/manual.texi:
  Fixed example
sql/mysqld.cc:
  Cleanup
This commit is contained in:
unknown
2002-06-17 15:00:06 +03:00
parent 77f31df500
commit f97e1b6ae1
3 changed files with 7 additions and 5 deletions

View File

@ -1285,7 +1285,8 @@ 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)
{