mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 22:25:32 +02:00
BUG#3987 - if(int, aggregate(int))
This commit is contained in:
parent
256bada7e2
commit
7dc2426be0
3 changed files with 17 additions and 2 deletions
|
|
@ -535,8 +535,8 @@ Item_func_if::fix_length_and_dec()
|
|||
decimals=max(args[1]->decimals,args[2]->decimals);
|
||||
enum Item_result arg1_type=args[1]->result_type();
|
||||
enum Item_result arg2_type=args[2]->result_type();
|
||||
bool null1=args[1]->null_value;
|
||||
bool null2=args[2]->null_value;
|
||||
bool null1=args[1]->const_item() && args[1]->null_value;
|
||||
bool null2=args[2]->const_item() && args[2]->null_value;
|
||||
|
||||
if (null1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue