mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
MDEV-4056 fix.
The problem was that maybe_null of Item_row and its componetes was unsynced after update_used_tables() (and so pushed_cond_guards was not initialized but then requested). Fix updates Item_row::maybe_null on update_used_tables().
This commit is contained in:
parent
d51f96b167
commit
2255132f20
3 changed files with 49 additions and 0 deletions
|
|
@ -139,11 +139,13 @@ void Item_row::update_used_tables()
|
|||
{
|
||||
used_tables_cache= 0;
|
||||
const_item_cache= 1;
|
||||
maybe_null= 0;
|
||||
for (uint i= 0; i < arg_count; i++)
|
||||
{
|
||||
items[i]->update_used_tables();
|
||||
used_tables_cache|= items[i]->used_tables();
|
||||
const_item_cache&= items[i]->const_item();
|
||||
maybe_null|= items[i]->maybe_null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue