From f3eb021d5e0c09215b28bf82c10b2e3085ad7a38 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Wed, 22 Feb 2012 11:17:50 +0100 Subject: Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET) Backport of fix for: Bug#53236 Segfault in DTCollation::set(DTCollation&) --- mysql-test/t/cast.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mysql-test/t') diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index 426d7c7fdf2..4474736200c 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -297,4 +297,16 @@ connection default; disconnect newconn; SET @@GLOBAL.max_allowed_packet=default; +--echo # +--echo # Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET) +--echo # + +CREATE TABLE t1 (a VARCHAR(50)); + +SELECT a FROM t1 +WHERE CAST(a as BINARY)=x'62736D697468' + AND CAST(a AS BINARY)=x'65736D697468'; + +DROP TABLE t1; + --echo End of 5.1 tests -- cgit v1.2.1