mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
5.1 -> 5.5 merge
This commit is contained in:
@@ -505,7 +505,10 @@ bool Item_func::is_expensive_processor(uchar *arg)
|
||||
my_decimal *Item_func::val_decimal(my_decimal *decimal_value)
|
||||
{
|
||||
DBUG_ASSERT(fixed);
|
||||
int2my_decimal(E_DEC_FATAL_ERROR, val_int(), unsigned_flag, decimal_value);
|
||||
longlong nr= val_int();
|
||||
if (null_value)
|
||||
return 0; /* purecov: inspected */
|
||||
int2my_decimal(E_DEC_FATAL_ERROR, nr, unsigned_flag, decimal_value);
|
||||
return decimal_value;
|
||||
}
|
||||
|
||||
|
@@ -3405,6 +3405,7 @@ void Item_func_str_to_date::fix_length_and_dec()
|
||||
{
|
||||
maybe_null= 1;
|
||||
decimals=0;
|
||||
cached_format_type= DATE_TIME;
|
||||
cached_field_type= MYSQL_TYPE_DATETIME;
|
||||
max_length= MAX_DATETIME_FULL_WIDTH*MY_CHARSET_BIN_MB_MAXLEN;
|
||||
cached_timestamp_type= MYSQL_TIMESTAMP_NONE;
|
||||
|
Reference in New Issue
Block a user