diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-03-15 16:56:11 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-03-15 16:56:11 +0200 |
commit | ace88ca2ddebe2457cfb0b406022bf046c8100f5 (patch) | |
tree | 496176916dabe63379a258a91d4b74477b12dc00 /mysql-test/r/cast.result | |
parent | 4f786b3efebedaccabba2de90f685c1e019cc02b (diff) | |
parent | 7a37a7c0c8dfece51bb7fdcb171d74ab04ef2736 (diff) | |
download | mariadb-git-ace88ca2ddebe2457cfb0b406022bf046c8100f5.tar.gz |
auto-merge
Diffstat (limited to 'mysql-test/r/cast.result')
-rw-r--r-- | mysql-test/r/cast.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result index 3e1ea824db5..ed19122cfee 100644 --- a/mysql-test/r/cast.result +++ b/mysql-test/r/cast.result @@ -451,4 +451,19 @@ SELECT CONVERT(t2.a USING UTF8) FROM t1, t1 t2 LIMIT 1 1 1 DROP TABLE t1; +# +# Bug #11765023: 57934: DOS POSSIBLE SINCE BINARY CASTING +# DOESN'T ADHERE TO MAX_ALLOWED_PACKET +SET @@GLOBAL.max_allowed_packet=2048; +SELECT CONVERT('a', BINARY(2049)); +CONVERT('a', BINARY(2049)) +NULL +Warnings: +Warning 1301 Result of cast_as_binary() was larger than max_allowed_packet (2048) - truncated +SELECT CONVERT('a', CHAR(2049)); +CONVERT('a', CHAR(2049)) +NULL +Warnings: +Warning 1301 Result of cast_as_char() was larger than max_allowed_packet (2048) - truncated +SET @@GLOBAL.max_allowed_packet=default; End of 5.1 tests |