mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 18:55:31 +02:00
5.5 merge
This commit is contained in:
commit
c6d30805db
1275 changed files with 66336 additions and 40622 deletions
|
|
@ -1475,27 +1475,6 @@ String *Item_temporal_func::val_str(String *str)
|
|||
}
|
||||
|
||||
|
||||
longlong Item_temporal_func::val_int()
|
||||
{
|
||||
DBUG_ASSERT(fixed == 1);
|
||||
MYSQL_TIME ltime;
|
||||
if (get_date(<ime, sql_mode))
|
||||
return 0;
|
||||
longlong v= TIME_to_ulonglong(<ime);
|
||||
return ltime.neg ? -v : v;
|
||||
}
|
||||
|
||||
|
||||
double Item_temporal_func::val_real()
|
||||
{
|
||||
DBUG_ASSERT(fixed == 1);
|
||||
MYSQL_TIME ltime;
|
||||
if (get_date(<ime, sql_mode))
|
||||
return 0;
|
||||
return TIME_to_double(<ime);
|
||||
}
|
||||
|
||||
|
||||
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
|
||||
{
|
||||
longlong value=args[0]->val_int();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue