summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-17 00:10:39 +0500
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-05-17 00:10:39 +0500
commit4ac1e98630759c9b86bb73035b4f95cd6909a2a9 (patch)
treee2cdbeb7138d9c53d55ceb94bae8dbc1a2929955 /mysql-test
parent364014e4553c6dfb2bb33c575d6c1a6d4bb9fc4e (diff)
parent28eddbe12b0edbcfdbb918ffa0487dedad0d1de2 (diff)
downloadmariadb-git-4ac1e98630759c9b86bb73035b4f95cd6909a2a9.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into mysql.com:/home/hf/work/8663/my50-8663
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/bigint.result10
-rw-r--r--mysql-test/t/bigint.test6
2 files changed, 16 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: ''
diff --git a/mysql-test/t/bigint.test b/mysql-test/t/bigint.test
index 6c1229db83f..9a5fb11229d 100644
--- a/mysql-test/t/bigint.test
+++ b/mysql-test/t/bigint.test
@@ -288,3 +288,9 @@ insert into t1 values (10000002383263201056);
select c1 mod 50 as result from t1;
drop table t1;
+#
+# Bug #8663 cant use bgint unsigned as input to cast
+#
+
+select cast(19999999999999999999 as signed);
+select cast(-19999999999999999999 as signed);