1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for MDEV-4836 fix: take into account situation where "notnull_col IS NULL" is not

a direct child of the WHERE clause item, but rather is embedded inside Item_cond_and or 
Item_cond_or.
This commit is contained in:
Sergey Petrunya
2013-08-26 21:38:04 +04:00
parent af753c2188
commit edd980225a
6 changed files with 52 additions and 2 deletions

View File

@ -1796,6 +1796,7 @@ 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);
bool cond_has_datetime_is_null(Item *cond);
/* Table elimination entry point function */
void eliminate_tables(JOIN *join);