diff options
author | Karen Langford <karen.langford@oracle.com> | 2011-05-06 10:03:02 +0200 |
---|---|---|
committer | Karen Langford <karen.langford@oracle.com> | 2011-05-06 10:03:02 +0200 |
commit | 74afcca8f23938f0a9fbea78581fd446059f59f9 (patch) | |
tree | 21e9deed4059dba183ba20b099bf8e355bdca43e /mysql-test/r/cast.result | |
parent | 8cc75b2d1ed70bf794f62f73397b098c47fff01b (diff) | |
parent | b4a59e016b0a1987d9e488ad81a4bad9b8f32d88 (diff) | |
download | mariadb-git-74afcca8f23938f0a9fbea78581fd446059f59f9.tar.gz |
Merge from mysql-5.1.57-release
Diffstat (limited to 'mysql-test/r/cast.result')
-rw-r--r-- | mysql-test/r/cast.result | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result index dd61396e485..44d57055e7f 100644 --- a/mysql-test/r/cast.result +++ b/mysql-test/r/cast.result @@ -451,4 +451,21 @@ 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; +Warnings: +Warning 1105 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length' +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 |