~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/cast.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
) AS s LIMIT 1;
283
283
DROP TABLE t1;
284
284
 
 
285
--echo #
 
286
--echo # Bug #11765023: 57934: DOS POSSIBLE SINCE BINARY CASTING 
 
287
--echo #   DOESN'T ADHERE TO MAX_ALLOWED_PACKET
 
288
 
 
289
SET @@GLOBAL.max_allowed_packet=2048;
 
290
# reconnect to make the new max packet size take effect
 
291
--connect (newconn, localhost, root,,)
 
292
 
 
293
SELECT CONVERT('a', BINARY(2049));  
 
294
SELECT CONVERT('a', CHAR(2049));  
 
295
 
 
296
connection default;
 
297
disconnect newconn;
 
298
SET @@GLOBAL.max_allowed_packet=default;
285
299
 
286
300
--echo End of 5.1 tests