summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-09-13 14:43:10 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-09-13 14:43:10 +0400
commitcf9cc19e910f3621661de6a9384a18aacf84a8dd (patch)
tree99add9d71c39e116d04d6305509dd31d47f45005 /sql/item.h
parent1a01e3b959102402de1547fb2c7b912269032882 (diff)
downloadmariadb-git-cf9cc19e910f3621661de6a9384a18aacf84a8dd.tar.gz
MDEV-4724 Some temporal functions do not preserve microseconds
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 5613fe547c4..13f8e359dbd 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -906,6 +906,10 @@ public:
virtual uint decimal_precision() const;
inline int decimal_int_part() const
{ return my_decimal_int_part(decimal_precision(), decimals); }
+ /**
+ TIME or DATETIME precision of the item: 0..6
+ */
+ uint temporal_precision(enum_field_types type);
/*
Returns true if this is constant (during query execution, i.e. its value
will not change until next fix_fields) and its value is known.