mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
MDEV-14515 ifnull result depends on number of rows in joined table
Any expensive WHERE condition for a table-less query with implicit aggregation was lost. As a result the used aggregate functions were calculated over a non-empty set of rows even in the case when the condition was false.
This commit is contained in:
parent
88ac368fea
commit
5e61e1716e
3 changed files with 46 additions and 2 deletions
|
|
@ -5903,5 +5903,6 @@ bool JOIN::choose_tableless_subquery_plan()
|
|||
tmp_having= having;
|
||||
}
|
||||
}
|
||||
exec_const_cond= conds;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue