summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-05-11 18:14:04 +0500
committerunknown <holyfoot/hf@hfmain.(none)>2007-05-11 18:14:04 +0500
commitf6a06aeba2c911a3179b38c3d877e7ebcd450041 (patch)
tree215d55af74b0566e627e0bca31749f8ed6ede660 /sql/my_decimal.h
parentbbd476300cece4cf67081a5c67038931c8cfa50e (diff)
parent7c0244ff0ce23a9eadb0ed12d25fd2d31a44843d (diff)
downloadmariadb-git-f6a06aeba2c911a3179b38c3d877e7ebcd450041.tar.gz
Merge mysql.com:/home/hf/work/27921/my51-27921
into mysql.com:/home/hf/work/27957/my51-27957 mysql-test/r/cast.result: Auto merged sql/item_create.cc: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/my_decimal.h: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r--sql/my_decimal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h
index eade029677f..b349fc3f62e 100644
--- a/sql/my_decimal.h
+++ b/sql/my_decimal.h
@@ -395,5 +395,16 @@ int my_decimal_intg(const my_decimal *a)
}
+void my_decimal_trim(ulong *precision, uint *scale)
+{
+ if (!(*precision) && !(*scale))
+ {
+ *precision= 10;
+ *scale= 0;
+ return;
+ }
+}
+
+
#endif /*my_decimal_h*/