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

« back to all changes in this revision

Viewing changes to mysql-test/t/ctype_utf8.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:
1466
1466
DROP TABLE t1;
1467
1467
 
1468
1468
--echo End of 5.0 tests
 
1469
 
 
1470
 
 
1471
#
 
1472
# Bug #57272: crash in rpad() when using utf8
 
1473
#
 
1474
SELECT LENGTH(RPAD(0.0115E88, 61297, _utf8'яэюя'));
 
1475
SELECT LENGTH(RPAD(0.0115E88, 61297, _utf8'йцуя'));
 
1476
SELECT HEX(RPAD(0x20, 2, _utf8 0xD18F));
 
1477
SELECT HEX(RPAD(0x20, 4, _utf8 0xD18F));
 
1478
SELECT HEX(LPAD(0x20, 2, _utf8 0xD18F));
 
1479
SELECT HEX(LPAD(0x20, 4, _utf8 0xD18F));
 
1480
 
 
1481
SELECT HEX(RPAD(_utf8 0xD18F, 3, 0x20));
 
1482
SELECT HEX(LPAD(_utf8 0xD18F, 3, 0x20));
 
1483
 
 
1484
SELECT HEX(INSERT(_utf8 0xD18F, 2, 1, 0x20));
 
1485
SELECT HEX(INSERT(_utf8 0xD18FD18E, 2, 1, 0x20));
 
1486
 
 
1487
 
 
1488
--echo End of 5.1 tests