mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #5397: Crash with varchar binary and LIKE
This commit is contained in:
@ -639,3 +639,8 @@ select * from t1 where str='str';
|
||||
str
|
||||
str
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8;
|
||||
INSERT INTO t1 VALUES ('test');
|
||||
SELECT a FROM t1 WHERE a LIKE '%te';
|
||||
a
|
||||
DROP TABLE t1;
|
||||
|
@ -492,3 +492,10 @@ INSERT INTO t1 VALUES ('str2');
|
||||
select * from t1 where str='str';
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #5397: Crash with varchar binary and LIKE
|
||||
#
|
||||
CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8;
|
||||
INSERT INTO t1 VALUES ('test');
|
||||
SELECT a FROM t1 WHERE a LIKE '%te';
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user