summaryrefslogtreecommitdiff
path: root/sql/my_decimal.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-11 18:19:47 +0500
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-11 18:19:47 +0500
commitcc488e922071905053516dcc4a7054d76bcd7f39 (patch)
treec4016f4c2c8a5b600a23c6bc957c75a94d88cd71 /sql/my_decimal.cc
parentb3ee5e878d88cd166bc3ef4e30feac0b21a008c5 (diff)
downloadmariadb-git-cc488e922071905053516dcc4a7054d76bcd7f39.tar.gz
merging fixes
Diffstat (limited to 'sql/my_decimal.cc')
-rw-r--r--sql/my_decimal.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/my_decimal.cc b/sql/my_decimal.cc
index 7b2d271639f..8823fac3393 100644
--- a/sql/my_decimal.cc
+++ b/sql/my_decimal.cc
@@ -208,6 +208,17 @@ my_decimal *date2my_decimal(MYSQL_TIME *ltime, my_decimal *dec)
}
+void my_decimal_trim(ulong *precision, uint *scale)
+{
+ if (!(*precision) && !(*scale))
+ {
+ *precision= 10;
+ *scale= 0;
+ return;
+ }
+}
+
+
#ifndef DBUG_OFF
/* routines for debugging print */