mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
MDEV-11078: NULL NOT IN (non-empty subquery) should never return results
Disabling the cond guards during the creation of Tricond Item for constant and NULL left expression items
This commit is contained in:
parent
6b8173b6e9
commit
43903745e5
4 changed files with 68 additions and 0 deletions
|
|
@ -596,6 +596,14 @@ public:
|
|||
void set_first_execution() { if (first_execution) first_execution= FALSE; }
|
||||
bool expr_cache_is_needed(THD *thd);
|
||||
inline bool left_expr_has_null();
|
||||
void disable_cond_guard_for_const_null_left_expr(int i)
|
||||
{
|
||||
if (left_expr->const_item() && !left_expr->is_expensive())
|
||||
{
|
||||
if (left_expr->element_index(i)->is_null())
|
||||
set_cond_guard_var(i,FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
int optimize(double *out_rows, double *cost);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue