From 9ca47d047e5164515eac6fcae05ae9450cb94213 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 31 Jul 2004 22:39:10 +0200 Subject: 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 --- sql/item_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item_func.h') 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) -- cgit v1.2.1