mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 03:05:33 +02:00
Fixed LP bug #776274,
The bug was introduced by the patch that fixed bug 717577.
This commit is contained in:
parent
8ac88c88f0
commit
aaf9fb0de7
5 changed files with 63 additions and 9 deletions
|
|
@ -5740,18 +5740,19 @@ void Item_equal::update_const()
|
|||
List_iterator<Item> it(equal_items);
|
||||
if (with_const)
|
||||
it++;
|
||||
Item *item= it++;
|
||||
while (item)
|
||||
Item *item;
|
||||
while ((item= it++))
|
||||
{
|
||||
if (item->const_item())
|
||||
{
|
||||
it.remove();
|
||||
Item *next_item= it++;
|
||||
add_const(item);
|
||||
item= next_item;
|
||||
}
|
||||
else
|
||||
item= it++;
|
||||
if (item == equal_items.head())
|
||||
with_const= TRUE;
|
||||
else
|
||||
{
|
||||
it.remove();
|
||||
add_const(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue