mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 04:05:32 +02:00
fixed an obscure bug in group by + having + Item_ref::get_date
This commit is contained in:
parent
312f0366bc
commit
dccac58396
4 changed files with 27 additions and 4 deletions
11
sql/item.cc
11
sql/item.cc
|
|
@ -194,6 +194,17 @@ bool Item_field::get_date(TIME *ltime,bool fuzzydate)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool Item_field::get_date_result(TIME *ltime,bool fuzzydate)
|
||||
{
|
||||
if ((null_value=result_field->is_null()) ||
|
||||
result_field->get_date(ltime,fuzzydate))
|
||||
{
|
||||
bzero((char*) ltime,sizeof(*ltime));
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool Item_field::get_time(TIME *ltime)
|
||||
{
|
||||
if ((null_value=field->is_null()) || field->get_time(ltime))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue