mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge bk@192.168.21.1:mysql-5.1
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt sql/item_cmpfunc.cc: Auto merged sql/sql_yacc.yy: Auto merged
This commit is contained in:
@@ -2458,7 +2458,8 @@ void in_decimal::set(uint pos, Item *item)
|
||||
dec->len= DECIMAL_BUFF_LENGTH;
|
||||
dec->fix_buffer_pointer();
|
||||
my_decimal *res= item->val_decimal(dec);
|
||||
if (res != dec)
|
||||
/* if item->val_decimal() is evaluated to NULL then res == 0 */
|
||||
if (!item->null_value && res != dec)
|
||||
my_decimal2decimal(res, dec);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user