mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Move the replcae result to before the correct select
This commit is contained in:
parent
465b2d38db
commit
c6e6c0d649
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue