summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2006-06-16 12:17:20 +0200
committerunknown <serg@serg.mylan>2006-06-16 12:17:20 +0200
commita22109027d9f80a151c936b33ced90aa8b117f03 (patch)
tree5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/item_timefunc.cc
parent35556fd1669d9c90d69d9029c6560b790337d70a (diff)
downloadmariadb-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.cc2
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(&ltime);
- return (longlong) TIME_to_ulonglong_datetime(&ltime);
+ return ulonglong2double(TIME_to_ulonglong_datetime(&ltime));
}