summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorkent@mysql.com <>2005-06-20 22:31:25 +0200
committerkent@mysql.com <>2005-06-20 22:31:25 +0200
commit9c79bc7e7301afc452d09639a7d7412b394440a4 (patch)
tree30e813eeac6497e704de9c34b5b3f6a43862a482 /sql/field.h
parente28264d29f7fda6d2d3ed6b7dec540f07b84275f (diff)
parent9426710c68dc27dade8d189baacc00296dd53e5d (diff)
downloadmariadb-git-9c79bc7e7301afc452d09639a7d7412b394440a4.tar.gz
Merge
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index 258eab9565f..ebf48568c04 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -25,6 +25,7 @@
#endif
#define NOT_FIXED_DEC 31
+#define DATETIME_DEC 6
class Send_field;
class Protocol;
@@ -941,6 +942,7 @@ public:
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
#endif
enum Item_result cmp_type () const { return INT_RESULT; }
+ uint decimals() const { return DATETIME_DEC; }
int store(const char *to,uint length,CHARSET_INFO *charset);
int store(double nr);
int store(longlong nr);