mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
lp:738067 Crash in get_datetime_value() in 5.1-micro
This commit is contained in:
@@ -1536,3 +1536,6 @@ drop table t1;
|
|||||||
select day(coalesce(null));
|
select day(coalesce(null));
|
||||||
day(coalesce(null))
|
day(coalesce(null))
|
||||||
NULL
|
NULL
|
||||||
|
select timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'));
|
||||||
|
timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'))
|
||||||
|
2002-08-20 00:00:00
|
||||||
|
@@ -973,3 +973,7 @@ drop table t1;
|
|||||||
#
|
#
|
||||||
select day(coalesce(null));
|
select day(coalesce(null));
|
||||||
|
|
||||||
|
#
|
||||||
|
# lp:738067 Crash in get_datetime_value() in 5.1-micro
|
||||||
|
#
|
||||||
|
select timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'));
|
||||||
|
@@ -2274,6 +2274,8 @@ bool Item_func_min_max::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
|
|||||||
{
|
{
|
||||||
longlong UNINIT_VAR(min_max);
|
longlong UNINIT_VAR(min_max);
|
||||||
DBUG_ASSERT(fixed == 1);
|
DBUG_ASSERT(fixed == 1);
|
||||||
|
if (!compare_as_dates)
|
||||||
|
return Item_func::get_date(ltime, fuzzy_date);
|
||||||
|
|
||||||
for (uint i=0; i < arg_count ; i++)
|
for (uint i=0; i < arg_count ; i++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user