summaryrefslogtreecommitdiff
path: root/mysql-test/r/bigint.result
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-16 10:12:49 +0500
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-16 10:12:49 +0500
commitbb089cea3852546e37d6a241b35f9223759b88c1 (patch)
treecc5b5bde02ab2b13971ee22d8bd647a5f35776fa /mysql-test/r/bigint.result
parent11d5f7ee1c4304425480ed803ef86a3abfe0c05a (diff)
downloadmariadb-git-bb089cea3852546e37d6a241b35f9223759b88c1.tar.gz
bug #8663 cant use bigint unsigned as input to cast
in the case of the overflow in the decimal->integer conversion we didn't return the proper boundary value, but just the result of the conversion we calculated on the moment of the error
Diffstat (limited to 'mysql-test/r/bigint.result')
-rw-r--r--mysql-test/r/bigint.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/bigint.result b/mysql-test/r/bigint.result
index 541a15561e2..f18d1c9b583 100644
--- a/mysql-test/r/bigint.result
+++ b/mysql-test/r/bigint.result
@@ -352,3 +352,13 @@ select c1 mod 50 as result from t1;
result
6
drop table t1;
+select cast(19999999999999999999 as signed);
+cast(19999999999999999999 as signed)
+9223372036854775807
+Warnings:
+Error 1292 Truncated incorrect DECIMAL value: ''
+select cast(-19999999999999999999 as signed);
+cast(-19999999999999999999 as signed)
+-9223372036854775808
+Warnings:
+Error 1292 Truncated incorrect DECIMAL value: ''