diff options
author | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:13:06 +0500 |
---|---|---|
committer | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:13:06 +0500 |
commit | 069314eaf36e8a6ab92d9eebae5d75b56d1e84b9 (patch) | |
tree | b8c54abe0649f45196d32077f74dd9ff1d2ad872 /sql/my_decimal.h | |
parent | 8df08a2de2a50757812daf4b51333b4c0b82c4dd (diff) | |
parent | d535add0131ae02d09a8f8149c85fdcc4a78a329 (diff) | |
download | mariadb-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.h | 11 |
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*/ |