5.5 merge

This commit is contained in:
Sergei Golubchik 2013-11-23 00:50:54 +01:00
commit c6d30805db
1275 changed files with 66336 additions and 40622 deletions

View file

@ -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(&ltime, sql_mode))
return 0;
longlong v= TIME_to_ulonglong(&ltime);
return ltime.neg ? -v : v;
}
double Item_temporal_func::val_real()
{
DBUG_ASSERT(fixed == 1);
MYSQL_TIME ltime;
if (get_date(&ltime, sql_mode))
return 0;
return TIME_to_double(&ltime);
}
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
{
longlong value=args[0]->val_int();