summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorgluh@mysql.com/gluh.(none) <>2006-08-08 16:03:42 +0500
committergluh@mysql.com/gluh.(none) <>2006-08-08 16:03:42 +0500
commit7e07425b2b10a23fc864b0e5ee11e264f19f547c (patch)
tree475ca7e04f6aa86e1aaadb5b9381c3f76cb6cf95 /sql/my_decimal.h
parent91c118e224b1ef4c741bee9a0c533e4b2c34c812 (diff)
downloadmariadb-git-7e07425b2b10a23fc864b0e5ee11e264f19f547c.tar.gz
Bug#16172 DECIMAL data type processed incorrectly
issue an 'overflow warning' if result value is bigger than max possible value
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r--sql/my_decimal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h
index b02abacf0a3..3ce8cfee75d 100644
--- a/sql/my_decimal.h
+++ b/sql/my_decimal.h
@@ -383,5 +383,13 @@ int my_decimal_cmp(const my_decimal *a, const my_decimal *b)
return decimal_cmp((decimal_t*) a, (decimal_t*) b);
}
+
+inline
+int my_decimal_intg(const my_decimal *a)
+{
+ return decimal_intg((decimal_t*) a);
+}
+
+
#endif /*my_decimal_h*/