summaryrefslogtreecommitdiff
path: root/mysql-test/r/cast.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-03-28 17:07:26 +0500
committerunknown <bar@mysql.com>2006-03-28 17:07:26 +0500
commite1cd462ea6929c6f7fc7e703248628ba49b96ba0 (patch)
treecb6386e1dc7095e7231e33e66f1b6cfb993dd3ea /mysql-test/r/cast.result
parent5d621a1b97618201cd55e56282b965ebe5e5769e (diff)
parent4ccd3761004caa83004558c5999052414d4d2df4 (diff)
downloadmariadb-git-e1cd462ea6929c6f7fc7e703248628ba49b96ba0.tar.gz
Merge mysql.com:/usr/home/bar/mysql-4.1.b15098
into mysql.com:/usr/home/bar/mysql-5.0 Bug#15098 mysql-test/t/cast.test: Auto merged mysql-test/r/cast.result: After merge fix sql/field.cc: After merge fix
Diffstat (limited to 'mysql-test/r/cast.result')
-rw-r--r--mysql-test/r/cast.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result
index 8da18df1954..4a3549b9a38 100644
--- a/mysql-test/r/cast.result
+++ b/mysql-test/r/cast.result
@@ -370,3 +370,11 @@ 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;