summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-11 18:13:06 +0500
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-11 18:13:06 +0500
commit069314eaf36e8a6ab92d9eebae5d75b56d1e84b9 (patch)
treeb8c54abe0649f45196d32077f74dd9ff1d2ad872 /sql/my_decimal.h
parent8df08a2de2a50757812daf4b51333b4c0b82c4dd (diff)
parentd535add0131ae02d09a8f8149c85fdcc4a78a329 (diff)
downloadmariadb-git-069314eaf36e8a6ab92d9eebae5d75b56d1e84b9.tar.gz
Merge mysql.com:/home/hf/work/27921/my50-27921
into mysql.com:/home/hf/work/27957/my50-27957
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*/