summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorbar@mysql.com <>2006-03-28 18:32:58 +0500
committerbar@mysql.com <>2006-03-28 18:32:58 +0500
commit4886c53fbb3850c3775e67508a81cd083e5651a1 (patch)
tree1802499d74dc3f5c116bc4e3711fda25016c915b /mysql-test/t
parent04f059c5bfd050ed82c0bf456dc1e4f7d6bc0937 (diff)
parent3e284e22a16d872b02a390e4f44d40cf535558b5 (diff)
downloadmariadb-git-4886c53fbb3850c3775e67508a81cd083e5651a1.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b15098
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/cast.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index ea0a0e4b352..4d73783dd52 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -152,4 +152,13 @@ select cast(repeat('1',20) as signed);
#
select cast(1.0e+300 as signed int);
+#
+# Bugs: #15098: CAST(column double TO signed int), wrong result
+#
+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;
+DROP TABLE t1;
+
# End of 4.1 tests