1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-8613 Full table scan for WHERE indexed_varchar_column <=> 'bad-character'

This commit is contained in:
Alexander Barkov
2015-08-13 16:41:02 +04:00
parent 60985e5375
commit 0750b2df37
3 changed files with 22 additions and 1 deletions

View File

@ -2263,5 +2263,17 @@ a b
70 NULL
DROP TABLE t1;
#
# MDEV-8613 Full table scan for WHERE indexed_varchar_column <=> 'bad-character'
#
SET NAMES utf8;
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8, KEY(a)) ENGINE=MyISAM;
INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
Warnings:
Warning 1366 Incorrect string value: '\xF0\x9F\x98\x8E' for column 'a' at row 1
DROP TABLE t1;
#
# End of 10.1 tests
#