summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <kent@kent-amd64.(none)>2007-11-12 14:09:57 +0100
committerunknown <kent@kent-amd64.(none)>2007-11-12 14:09:57 +0100
commit58c1e11256efe37ae924267f053df0716291e5b9 (patch)
tree69be98427aecf17aee338d02fb33542cd604bbb8
parent9ceb48bd1a7b9d34ed7759ec13519c66c1a75161 (diff)
parentfc71ff899ba5247655bb9a03867e44ee13460f3e (diff)
downloadmariadb-git-58c1e11256efe37ae924267f053df0716291e5b9.tar.gz
Merge mysql.com:/home/kent/bk/bug30069/mysql-5.0-build
into mysql.com:/home/kent/bk/bug30069/mysql-5.1-build mysql-test/r/bigint.result: Auto merged mysql-test/t/bigint.test: Auto merged strings/ctype-simple.c: Auto merged
-rw-r--r--mysql-test/r/bigint.result6
-rw-r--r--mysql-test/t/bigint.test9
2 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/bigint.result b/mysql-test/r/bigint.result
index 0d6cf8e7d30..4a5b8fcf4aa 100644
--- a/mysql-test/r/bigint.result
+++ b/mysql-test/r/bigint.result
@@ -170,6 +170,12 @@ t2.value64=t1.value64;
value64 value32 value64 value32
9223372036854775807 2 9223372036854775807 4
drop table t1, t2;
+create table t1 (sint64 bigint not null);
+insert into t1 values (-9223372036854775808);
+select * from t1;
+sint64
+-9223372036854775808
+drop table t1;
create table t1 select 1 as 'a';
show create table t1;
Table Create Table
diff --git a/mysql-test/t/bigint.test b/mysql-test/t/bigint.test
index da10f4efa61..5a589816dcd 100644
--- a/mysql-test/t/bigint.test
+++ b/mysql-test/t/bigint.test
@@ -113,6 +113,15 @@ t2.value64=t1.value64;
drop table t1, t2;
+# Test for BUG#30069, can't handle bigint -9223372036854775808 on
+# x86_64, with some GCC versions and optimizations.
+
+create table t1 (sint64 bigint not null);
+insert into t1 values (-9223372036854775808);
+select * from t1;
+
+drop table t1;
+
# End of 4.1 tests
#