Commit e0731bad authored by bar@mysql.com's avatar bar@mysql.com

func_like.result:

  LIKE crashed mysqld for binary collations in some cases
parent 1cd108ff
...@@ -155,3 +155,6 @@ select * from t1 where a like '%ESKA%'; ...@@ -155,3 +155,6 @@ select * from t1 where a like '%ESKA%';
a a
PPUH PESKA-I Maria Struniarska PPUH PESKA-I Maria Struniarska
DROP TABLE t1; DROP TABLE t1;
select _cp866'aaaaaaaaa' like _cp866'%aaaa%' collate cp866_bin;
_cp866'aaaaaaaaa' like _cp866'%aaaa%' collate cp866_bin
1
...@@ -90,3 +90,9 @@ select * from t1 where a like '%PES%'; ...@@ -90,3 +90,9 @@ select * from t1 where a like '%PES%';
select * from t1 where a like '%PESKA%'; select * from t1 where a like '%PESKA%';
select * from t1 where a like '%ESKA%'; select * from t1 where a like '%ESKA%';
DROP TABLE t1; DROP TABLE t1;
#
# LIKE crashed for binary collations in some cases
#
select _cp866'aaaaaaaaa' like _cp866'%aaaa%' collate cp866_bin;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment