diff options
author | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
commit | a22109027d9f80a151c936b33ced90aa8b117f03 (patch) | |
tree | 5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/item_timefunc.cc | |
parent | 35556fd1669d9c90d69d9029c6560b790337d70a (diff) | |
download | mariadb-git-a22109027d9f80a151c936b33ced90aa8b117f03.tar.gz |
String::set(double) and set(longlong) -> set_real() and set_int()
fix Field::store(double) being used instead of store(longlong)
NB: overloading functions is evil
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 06abbe60121..4ffb3324a5b 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -1503,7 +1503,7 @@ double Item_func_sysdate_local::val_real() { DBUG_ASSERT(fixed == 1); store_now_in_TIME(<ime); - return (longlong) TIME_to_ulonglong_datetime(<ime); + return ulonglong2double(TIME_to_ulonglong_datetime(<ime)); } |