summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-03-29 19:31:16 +0500
committerunknown <bar@mysql.com>2006-03-29 19:31:16 +0500
commitfa65771ed82e820822efeeb9678e8bca9a4bf095 (patch)
treeeb9c60ce0d1a5aadf52ed97fe4e42b15e76d13ea /mysql-test
parentdfe5769a04d07c26234940118f8af623dc70ab1a (diff)
downloadmariadb-git-fa65771ed82e820822efeeb9678e8bca9a4bf095.tar.gz
Additional 5.0 fix for
Bug#15098: CAST(column double TO signed int), wrong result which was fixed originally in 4.1. mysql-test/r/cast.result: Fixing test results sql/field.cc: Adding a "truncated value" warning.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/cast.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result
index ae9e6748e65..d60efa083e0 100644
--- a/mysql-test/r/cast.result
+++ b/mysql-test/r/cast.result
@@ -344,6 +344,9 @@ 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
+Warnings:
+Warning 1292 Truncated incorrect INTEGER value: '-1e+30'
+Warning 1292 Truncated incorrect INTEGER value: '1e+30'
DROP TABLE t1;
select cast('1.2' as decimal(3,2));
cast('1.2' as decimal(3,2))