mirror of
https://github.com/MariaDB/server.git
synced 2025-05-04 06:05:05 +03:00
Fix test case 'cast' on Windows, different floating point output format.
This commit is contained in:
parent
35be8c8892
commit
c48ded66d3
@ -171,6 +171,8 @@ select cast(1.0e+300 as signed int);
|
||||
CREATE TABLE t1 (f1 double);
|
||||
INSERT INTO t1 SET f1 = -1.0e+30 ;
|
||||
INSERT INTO t1 SET f1 = +1.0e+30 ;
|
||||
# Expected result is +-1e+30, but Windows returns +-1e+030.
|
||||
--replace_result 1e+030 1e+30
|
||||
SELECT f1 AS double_val, CAST(f1 AS SIGNED INT) AS cast_val FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user