mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
lp:923429 Crash in decimal_cmp on using UNIX_TIMESTAMP with a wrongly formatted timestamp
UNIX_TIMESTAMP() can be null, and returns null for invalid values
This commit is contained in:
@@ -385,11 +385,6 @@ public:
|
||||
Item_func_unix_timestamp(Item *a) :Item_func_seconds_hybrid(a) {}
|
||||
const char *func_name() const { return "unix_timestamp"; }
|
||||
bool check_partition_func_processor(uchar *int_arg) {return FALSE;}
|
||||
void fix_num_length_and_dec()
|
||||
{
|
||||
maybe_null= false;
|
||||
Item_func_seconds_hybrid::fix_num_length_and_dec();
|
||||
}
|
||||
/*
|
||||
UNIX_TIMESTAMP() depends on the current timezone
|
||||
(and thus may not be used as a partitioning function)
|
||||
|
Reference in New Issue
Block a user