summaryrefslogtreecommitdiff
path: root/include/decimal.h
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/gluh.(none)>2006-08-08 16:03:42 +0500
committerunknown <gluh@mysql.com/gluh.(none)>2006-08-08 16:03:42 +0500
commit66f6b5ba12ddfcd3c683e5a6df86b1d16751b1bf (patch)
tree475ca7e04f6aa86e1aaadb5b9381c3f76cb6cf95 /include/decimal.h
parentd406c600532766fbd80484d96a910c6836e13300 (diff)
downloadmariadb-git-66f6b5ba12ddfcd3c683e5a6df86b1d16751b1bf.tar.gz
Bug#16172 DECIMAL data type processed incorrectly
issue an 'overflow warning' if result value is bigger than max possible value include/decimal.h: Bug#16172 DECIMAL data type processed incorrectly new function decimal_intg() mysql-test/r/cast.result: Bug#16172 DECIMAL data type processed incorrectly result fix mysql-test/r/type_newdecimal.result: Bug#16172 DECIMAL data type processed incorrectly test result mysql-test/r/view.result: Bug#16172 DECIMAL data type processed incorrectly result fix mysql-test/t/type_newdecimal.test: Bug#16172 DECIMAL data type processed incorrectly test case sql/item_create.cc: Bug#16172 DECIMAL data type processed incorrectly do not increase decimal part on 2(according to manual) sql/my_decimal.h: Bug#16172 DECIMAL data type processed incorrectly new function my_decimal_intg() strings/decimal.c: Bug#16172 DECIMAL data type processed incorrectly new function decimal_intg()
Diffstat (limited to 'include/decimal.h')
-rw-r--r--include/decimal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/decimal.h b/include/decimal.h
index 2648e04c1cf..3b4cafbfd26 100644
--- a/include/decimal.h
+++ b/include/decimal.h
@@ -48,6 +48,7 @@ int decimal_bin_size(int precision, int scale);
int decimal_result_size(decimal_t *from1, decimal_t *from2, char op,
int param);
+int decimal_intg(decimal_t *from);
int decimal_add(decimal_t *from1, decimal_t *from2, decimal_t *to);
int decimal_sub(decimal_t *from1, decimal_t *from2, decimal_t *to);
int decimal_cmp(decimal_t *from1, decimal_t *from2);