diff options
author | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:19:47 +0500 |
---|---|---|
committer | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:19:47 +0500 |
commit | cc488e922071905053516dcc4a7054d76bcd7f39 (patch) | |
tree | c4016f4c2c8a5b600a23c6bc957c75a94d88cd71 /sql/my_decimal.cc | |
parent | b3ee5e878d88cd166bc3ef4e30feac0b21a008c5 (diff) | |
download | mariadb-git-cc488e922071905053516dcc4a7054d76bcd7f39.tar.gz |
merging fixes
Diffstat (limited to 'sql/my_decimal.cc')
-rw-r--r-- | sql/my_decimal.cc | 11 |
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 */ |