diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-08-23 16:32:56 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-08-23 16:32:56 +0400 |
commit | 970542ec90951c3e9d68ff310cdf181465854aaa (patch) | |
tree | 8cad06c470ae4b87ffe339ca58f4f7e28a7714a9 /sql/sql_select.h | |
parent | f5ea23b6e2bedb4bdaed7f53325cfce35acc8a3e (diff) | |
download | mariadb-git-970542ec90951c3e9d68ff310cdf181465854aaa.tar.gz |
MDEV-4836: Wrong result on <not null date column> IS NULL (old documented hack stopped working)
- When applying optimization introduced by MDEV-4817, ignore the conditions that have form
"datetime_not_null_col IS NULL".
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 478eede7108..fd12cfae335 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1795,6 +1795,7 @@ ORDER *simple_remove_const(ORDER *order, COND *where); bool const_expression_in_where(COND *cond, Item *comp_item, Field *comp_field= NULL, Item **const_item= NULL); +bool cond_is_datetime_is_null(Item *cond); /* Table elimination entry point function */ void eliminate_tables(JOIN *join); |