summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2020-06-13 09:30:04 +0400
committerAlexander Barkov <bar@mariadb.com>2020-06-13 09:30:04 +0400
commit6c30bc2181328ea619d1ab61a464feb0514bf12a (patch)
treec5a1bc61de369ed5e5df9fb441fb2aa7ea2e5292 /sql/item_sum.h
parent81a08c5462154e169d0a35e52c023d066065b175 (diff)
downloadmariadb-git-6c30bc2181328ea619d1ab61a464feb0514bf12a.tar.gz
MDEV-22268 virtual longlong Item_func_div::int_op(): Assertion `0' failed in Item_func_div::int_op
Item_func_div::fix_length_and_dec_temporal() set the return data type to integer in case of @div_precision_increment==0 for temporal input with FSP=0. This caused Item_func_div to call int_op(), which is not implemented, so a crash on DBUG_ASSERT(0) happened. Fixing fix_length_and_dec_temporal() to set the result type to DECIMAL.
Diffstat (limited to 'sql/item_sum.h')
0 files changed, 0 insertions, 0 deletions