diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-11-21 13:09:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-11-21 13:09:08 +0400 |
commit | c7355b19828c37d8efb9f1d4b5010544aa110bd4 (patch) | |
tree | b74e960c3447f7c3c876c1262e5703c7dcf75b4f /sql/item_timefunc.cc | |
parent | 160236f880e92d2872d95ce72aab144f08456bcc (diff) | |
parent | 2394fa67d4908f62ef14f3ca90269fb32806d193 (diff) | |
download | mariadb-git-c7355b19828c37d8efb9f1d4b5010544aa110bd4.tar.gz |
Merge 5.3->5.5
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 40068bc49c0..ab536e58f1c 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -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(); |