diff options
author | unknown <serg@serg.mylan> | 2004-07-31 22:39:10 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-07-31 22:39:10 +0200 |
commit | 9ca47d047e5164515eac6fcae05ae9450cb94213 (patch) | |
tree | cf7939bc79abe785fb770d14f5f7efac88a3349e /sql/item_func.h | |
parent | 42ed0103c8cac51d84c9fdf339058a85667cd19a (diff) | |
download | mariadb-git-9ca47d047e5164515eac6fcae05ae9450cb94213.tar.gz |
BUG#4393, BUG#4356 - incorrect decimals in fix_length_and_dec() in some functions
mysql-test/mysql-test-run.sh:
report failed test name
mysql-test/r/func_math.result:
test results fixed
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 4d171cda490..8a013f42c05 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -295,7 +295,7 @@ class Item_dec_func :public Item_real_func Item_dec_func(Item *a,Item *b) :Item_real_func(a,b) {} void fix_length_and_dec() { - decimals=6; max_length=float_length(decimals); + decimals=NOT_FIXED_DEC; max_length=float_length(decimals); maybe_null=1; } inline double fix_result(double value) |