diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-09-12 21:31:14 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-09-12 21:31:14 +0400 |
commit | 499ddea5766d988adc858448c8eec549c7bedcc1 (patch) | |
tree | fd0a976fc3ac2b96c8f812c1bab2e0e57976cfce /sql/item.h | |
parent | c2b38529a9ca2ea09dfa73186d9350a0d6dcd6ac (diff) | |
download | mariadb-git-499ddea5766d988adc858448c8eec549c7bedcc1.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. |