summaryrefslogtreecommitdiff
path: root/mysql-test/r/cast.result
diff options
context:
space:
mode:
authorbar@mysql.com <>2006-03-28 18:21:19 +0500
committerbar@mysql.com <>2006-03-28 18:21:19 +0500
commitfc86e304cc98e476138e097210dc65c34d417d83 (patch)
treea1c4abd5adca9dd973db88d145412986c149b984 /mysql-test/r/cast.result
parent29b8e0973209be5077dc3cbce66e7b2d43d98033 (diff)
downloadmariadb-git-fc86e304cc98e476138e097210dc65c34d417d83.tar.gz
cast.result:
After merge fix.
Diffstat (limited to 'mysql-test/r/cast.result')
-rw-r--r--mysql-test/r/cast.result16
1 files changed, 8 insertions, 8 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result
index 4a3549b9a38..ae9e6748e65 100644
--- a/mysql-test/r/cast.result
+++ b/mysql-test/r/cast.result
@@ -337,6 +337,14 @@ Warning 1105 Cast to signed converted positive out-of-range integer to it's nega
select cast(1.0e+300 as signed int);
cast(1.0e+300 as signed int)
9223372036854775807
+CREATE TABLE t1 (f1 double);
+INSERT INTO t1 SET f1 = -1.0e+30 ;
+INSERT INTO t1 SET f1 = +1.0e+30 ;
+SELECT f1 AS double_val, CAST(f1 AS SIGNED INT) AS cast_val FROM t1;
+double_val cast_val
+-1e+30 -9223372036854775808
+1e+30 9223372036854775807
+DROP TABLE t1;
select cast('1.2' as decimal(3,2));
cast('1.2' as decimal(3,2))
1.20
@@ -370,11 +378,3 @@ DROP TABLE t1;
select cast(NULL as decimal(6)) as t1;
t1
NULL
-CREATE TABLE t1 (f1 double);
-INSERT INTO t1 SET f1 = -1.0e+30 ;
-INSERT INTO t1 SET f1 = +1.0e+30 ;
-SELECT f1 AS double_val, CAST(f1 AS SIGNED INT) AS cast_val FROM t1;
-double_val cast_val
--1e+30 -9223372036854775808
-1e+30 9223372036854775807
-DROP TABLE t1;