summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-05-22 11:58:48 +0200
committerSergei Golubchik <sergii@pisem.net>2011-05-22 11:58:48 +0200
commit306ed65302e14f303fdc33cfa9d19016fb319440 (patch)
tree1419433c9d99e58fffee2527c42a8194c338a65e /sql/item_func.h
parentdda9577d553c9969415bc5f3d45f287e3dd6de39 (diff)
downloadmariadb-git-306ed65302e14f303fdc33cfa9d19016fb319440.tar.gz
unix_timestamp() and from_unixtime() supports microseconds.
unix_timestamp() and time_to_sec() are hybrid items, returning integer or double depending on the argument.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index cd2829fb5a7..7a4fd742cf5 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -242,6 +242,8 @@ class Item_func_numhybrid: public Item_func
protected:
Item_result hybrid_type;
public:
+ Item_func_numhybrid() :Item_func(), hybrid_type(REAL_RESULT)
+ {}
Item_func_numhybrid(Item *a) :Item_func(a), hybrid_type(REAL_RESULT)
{}
Item_func_numhybrid(Item *a,Item *b)