Bug #11245 | LIKE doesn't return rows when used with index | ||
---|---|---|---|
Submitted: | 10 Jun 2005 13:45 | Modified: | 10 Jun 2005 14:13 |
Reporter: | Jakub Vrana (Candidate Quality Contributor) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.11 | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any |
[10 Jun 2005 13:45]
Jakub Vrana
[10 Jun 2005 14:13]
Jorge del Conde
Hi! I was unable to reproduce this bug using 4.1.13 from bk: mysql> SELECT * FROM jazyky WHERE domena LIKE 'www.a-%'; +------------------+ | domena | +------------------+ | www.a-prague.com | | www.a-praha.com | +------------------+ 2 rows in set (0.00 sec) mysql> EXPLAIN SELECT * FROM jazyky WHERE domena LIKE 'www.a-%'; +----+-------------+--------+-------+---------------+---------+---------+------+------+--------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+--------+-------+---------------+---------+---------+------+------+--------------------------+ | 1 | SIMPLE | jazyky | range | PRIMARY | PRIMARY | 150 | NULL | 1 | Using where; Using index | +----+-------------+--------+-------+---------------+---------+---------+------+------+--------------------------+ 1 row in set (0.00 sec) mysql>