Skip to content

Commit 9a8f754

Browse files
author
Tor Didriksen
committed
merge 5.5-security => trunk-security
2 parents 974625a + 309d428 commit 9a8f754

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

mysql-test/r/cast.result

+9
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,13 @@ NULL
468468
Warnings:
469469
Warning 1301 Result of cast_as_char() was larger than max_allowed_packet (2048) - truncated
470470
SET @@GLOBAL.max_allowed_packet=default;
471+
#
472+
# Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET)
473+
#
474+
CREATE TABLE t1 (a VARCHAR(50));
475+
SELECT a FROM t1
476+
WHERE CAST(a as BINARY)=x'62736D697468'
477+
AND CAST(a AS BINARY)=x'65736D697468';
478+
a
479+
DROP TABLE t1;
471480
End of 5.1 tests

mysql-test/t/cast.test

+12
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,16 @@ connection default;
295295
disconnect newconn;
296296
SET @@GLOBAL.max_allowed_packet=default;
297297

298+
--echo #
299+
--echo # Bug#13519724 63793: CRASH IN DTCOLLATION::SET(DTCOLLATION &SET)
300+
--echo #
301+
302+
CREATE TABLE t1 (a VARCHAR(50));
303+
304+
SELECT a FROM t1
305+
WHERE CAST(a as BINARY)=x'62736D697468'
306+
AND CAST(a AS BINARY)=x'65736D697468';
307+
308+
DROP TABLE t1;
309+
298310
--echo End of 5.1 tests

0 commit comments

Comments
 (0)