summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-05-11 13:07:53 +0500
committerunknown <holyfoot/hf@hfmain.(none)>2007-05-11 13:07:53 +0500
commit7c0244ff0ce23a9eadb0ed12d25fd2d31a44843d (patch)
treecfe1053ca43f5280090655ddfc9adf20870cb60c /sql/my_decimal.h
parent218af4b7ae75ce37dd132984ff0686edaedf48f0 (diff)
parent6187c15d844b84393ff4073951234e4e64cf7812 (diff)
downloadmariadb-git-7c0244ff0ce23a9eadb0ed12d25fd2d31a44843d.tar.gz
Merge mysql.com:/home/hf/work/27921/my50-27921
into mysql.com:/home/hf/work/27921/my51-27921 mysql-test/r/cast.result: Auto merged mysql-test/r/view.result: Auto merged sql/field.cc: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/item_create.h: merging sql/my_decimal.h: merging sql/sql_yacc.yy: merging
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*/