diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-09-13 14:43:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-09-13 14:43:10 +0400 |
commit | cf9cc19e910f3621661de6a9384a18aacf84a8dd (patch) | |
tree | 99add9d71c39e116d04d6305509dd31d47f45005 /sql/item.h | |
parent | 1a01e3b959102402de1547fb2c7b912269032882 (diff) | |
download | mariadb-git-cf9cc19e910f3621661de6a9384a18aacf84a8dd.tar.gz |
MDEV-4724 Some temporal functions do not preserve microseconds
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 4 |
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. |