From c3e7925f721255f38b18fde2eaa1dc58fe4acb5e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 23 Mar 2006 08:21:16 +0100 Subject: [PATCH] Move the replcae result to before the correct select --- mysql-test/t/type_newdecimal.test | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mysql-test/t/type_newdecimal.test b/mysql-test/t/type_newdecimal.test index 47b8bf64d66..74782a5bddb 100644 --- a/mysql-test/t/type_newdecimal.test +++ b/mysql-test/t/type_newdecimal.test @@ -1054,14 +1054,7 @@ SELECT my_float, my_double, my_varchar FROM t1; # On windows we get 0.000000000011754943372854770000 # use replace_result to correct it --replace_result 0.000000000011754943372854770000 0.000000000011754943372854760000 - SELECT CAST(my_float AS DECIMAL(65,30)), my_float FROM t1; - -# Expected result 0.000000000011754943372854760000 -# On windows we get 0.000000000011754943372854770000 -# use replace_result to correct it ---replace_result 0.000000000011754943372854770000 0.000000000011754943372854760000 - SELECT CAST(my_double AS DECIMAL(65,30)), my_double FROM t1; SELECT CAST(my_varchar AS DECIMAL(65,30)), my_varchar FROM t1; @@ -1072,7 +1065,13 @@ SELECT CAST(my_varchar AS DECIMAL(65,30)), my_varchar FROM t1; --disable_warnings UPDATE t1 SET my_decimal = my_float; + +# Expected result 0.000000000011754943372854760000 +# On windows we get 0.000000000011754943372854770000 +# use replace_result to correct it +--replace_result 0.000000000011754943372854770000 0.000000000011754943372854760000 SELECT my_decimal, my_float FROM t1; + UPDATE t1 SET my_decimal = my_double; SELECT my_decimal, my_double FROM t1; --enable_warnings