mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Check if AND/OR expression can be NULL
Better fix for ALTER TABLE on BDB tables (Both of the above fixes are already in 4.0) Docs/manual.texi: Changelog sql/item_cmpfunc.cc: Check if AND/OR expression can be NULL sql/sql_table.cc: Better fix for ALTER TABLE on BDB tables
This commit is contained in:
parent
c8f6ea2c7c
commit
35115d9a50
3 changed files with 19 additions and 3 deletions
|
|
@ -1097,6 +1097,8 @@ Item_cond::fix_fields(THD *thd,TABLE_LIST *tables)
|
|||
used_tables_cache|=item->used_tables();
|
||||
with_sum_func= with_sum_func || item->with_sum_func;
|
||||
const_item_cache&=item->const_item();
|
||||
if (item->maybe_null)
|
||||
maybe_null=1;
|
||||
}
|
||||
if (thd)
|
||||
thd->cond_count+=list.elements;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue