summaryrefslogtreecommitdiff
path: root/mysql-test/r/cast.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-03-28 18:24:04 +0500
committerunknown <bar@mysql.com>2006-03-28 18:24:04 +0500
commit8cf93ac629d6b4c8b8519a622318148ad9793f48 (patch)
treeaef94fbdc9edee96505fffafc01ae65dbe520be5 /mysql-test/r/cast.result
parent27000fb555ad90e265b56dffbc2193d0e82690cf (diff)
parent17d2b065f479aab2162a2d63bc51e3b6638f71d1 (diff)
downloadmariadb-git-8cf93ac629d6b4c8b8519a622318148ad9793f48.tar.gz
Merge mysql.com:/usr/home/bar/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.1-new mysql-test/r/cast.result: Auto merged sql/field.cc: Auto merged
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 6d184da10e6..2f66b982d5a 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