diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-11-04 07:13:07 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-11-04 07:13:07 +0400 |
commit | 563efeceece09154f71da6303244b1df36875428 (patch) | |
tree | 68ccd3a3e52d37ab8877bb9d611ce76641c0b8dd /zlib/inffixed.h | |
parent | 2feac61e18c66876cab654285e02c7020050c556 (diff) | |
download | mariadb-git-563efeceece09154f71da6303244b1df36875428.tar.gz |
MDEV-17607 DATE(COALESCE(year_column)) returns a wrong result
C++ does not guarantee the order of parameter evaluation.
It was wrong to pass item->val_int() and item->null_value
at the same time to any function or constructor.
Adding a new helper class Longlong_null, and new methods
Item::to_longlong_null() and Item_func_hybrid_field_type::to_longlong_null_op(),
which make sure to properly call val_int()/int_op() and test null_value.
Reorganizing the rest of the code accordingly.
Diffstat (limited to 'zlib/inffixed.h')
0 files changed, 0 insertions, 0 deletions