summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-05-11 18:13:06 +0500
committerunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-05-11 18:13:06 +0500
commit3838978ef00ee338a1d5bae657be8488f20e6e2b (patch)
treeb8c54abe0649f45196d32077f74dd9ff1d2ad872 /sql/my_decimal.h
parent684a43aa17c3e2fda6f0e1498ecca372ca6468bb (diff)
parent6187c15d844b84393ff4073951234e4e64cf7812 (diff)
downloadmariadb-git-3838978ef00ee338a1d5bae657be8488f20e6e2b.tar.gz
Merge mysql.com:/home/hf/work/27921/my50-27921
into mysql.com:/home/hf/work/27957/my50-27957 mysql-test/r/cast.result: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/my_decimal.h: 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 731a3bd505c..b19d6e40cb4 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*/