summaryrefslogtreecommitdiff
path: root/mysql-test/t/cast.test
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2012-02-22 11:17:50 +0100
committerTor Didriksen <tor.didriksen@oracle.com>2012-02-22 11:17:50 +0100
commitf3eb021d5e0c09215b28bf82c10b2e3085ad7a38 (patch)
treec1fb49aaccafd68acbc5bfb869e760e18b68ac7f /mysql-test/t/cast.test
parentb79d492ee5ed6f557df7e3e535126ca80cc28ca2 (diff)
downloadmariadb-git-f3eb021d5e0c09215b28bf82c10b2e3085ad7a38.tar.gz
Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET)
Backport of fix for: Bug#53236 Segfault in DTCollation::set(DTCollation&)
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r--mysql-test/t/cast.test12
1 files changed, 12 insertions, 0 deletions
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