diff options
author | unknown <bar@mysql.com> | 2006-03-29 19:31:16 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-03-29 19:31:16 +0500 |
commit | fa65771ed82e820822efeeb9678e8bca9a4bf095 (patch) | |
tree | eb9c60ce0d1a5aadf52ed97fe4e42b15e76d13ea /mysql-test | |
parent | dfe5769a04d07c26234940118f8af623dc70ab1a (diff) | |
download | mariadb-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.result | 3 |
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)) |