summaryrefslogtreecommitdiff
path: root/mysql-test/extra
diff options
context:
space:
mode:
authorunknown <mkindahl@dl145h.mysql.com>2008-02-11 18:10:56 +0100
committerunknown <mkindahl@dl145h.mysql.com>2008-02-11 18:10:56 +0100
commit3a002636fb6f0e08248c4aa4bfc1b272eeaaf711 (patch)
tree4b21599f711d96259fcea2a3e443ec93968cd196 /mysql-test/extra
parentdd38b5d1c819075a685b8628e0139b45ddf3cc07 (diff)
parent54122b0342f03d681ff8cf4e02b1528667716c75 (diff)
downloadmariadb-git-3a002636fb6f0e08248c4aa4bfc1b272eeaaf711.tar.gz
Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl-merge configure.in: Auto merged sql/slave.cc: Auto merged sql/sql_binlog.cc: Auto merged
Diffstat (limited to 'mysql-test/extra')
-rw-r--r--mysql-test/extra/binlog_tests/binlog.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/extra/binlog_tests/binlog.test b/mysql-test/extra/binlog_tests/binlog.test
index 0d2ed7ad509..48fc5a81c7b 100644
--- a/mysql-test/extra/binlog_tests/binlog.test
+++ b/mysql-test/extra/binlog_tests/binlog.test
@@ -108,6 +108,23 @@ drop table t1;
set global binlog_cache_size=@bcs;
set session autocommit = @ac;
+#
+# Bug#33798: prepared statements improperly handle large unsigned ints
+#
+--disable_warnings
+drop table if exists t1;
+--enable_warnings
+reset master;
+create table t1 (a bigint unsigned, b bigint(20) unsigned);
+prepare stmt from "insert into t1 values (?,?)";
+set @a= 9999999999999999;
+set @b= 14632475938453979136;
+execute stmt using @a, @b;
+deallocate prepare stmt;
+drop table t1;
+--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /Server ver: [^,]*,/Server version,/
+show binlog events from 0;
+
--echo End of 5.0 tests
# Test of a too big SET INSERT_ID: see if the truncated value goes