summaryrefslogtreecommitdiff
path: root/mysql-test/t/cast.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-03-15 16:56:11 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-03-15 16:56:11 +0200
commitace88ca2ddebe2457cfb0b406022bf046c8100f5 (patch)
tree496176916dabe63379a258a91d4b74477b12dc00 /mysql-test/t/cast.test
parent4f786b3efebedaccabba2de90f685c1e019cc02b (diff)
parent7a37a7c0c8dfece51bb7fdcb171d74ab04ef2736 (diff)
downloadmariadb-git-ace88ca2ddebe2457cfb0b406022bf046c8100f5.tar.gz
auto-merge
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r--mysql-test/t/cast.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index f5426f8d631..a922cc9aaf7 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -280,5 +280,19 @@ SELECT 1 FROM
) AS s LIMIT 1;
DROP TABLE t1;
+--echo #
+--echo # Bug #11765023: 57934: DOS POSSIBLE SINCE BINARY CASTING
+--echo # DOESN'T ADHERE TO MAX_ALLOWED_PACKET
+
+SET @@GLOBAL.max_allowed_packet=2048;
+# reconnect to make the new max packet size take effect
+--connect (newconn, localhost, root,,)
+
+SELECT CONVERT('a', BINARY(2049));
+SELECT CONVERT('a', CHAR(2049));
+
+connection default;
+disconnect newconn;
+SET @@GLOBAL.max_allowed_packet=default;
--echo End of 5.1 tests