Bug #3634 | LIKE with % doesn't match exact entry | ||
---|---|---|---|
Submitted: | 3 May 2004 16:36 | Modified: | 4 May 2004 22:06 |
Reporter: | David Deutsch | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.2 | OS: | Linux (Linux x86 2.6.5) |
Assigned to: | CPU Architecture: | Any |
[3 May 2004 16:36]
David Deutsch
[4 May 2004 22:06]
Michael Widenius
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Additional info: % should match end of string (empty string) I did a test of this with the current 4.1.2 tree: create table t1 (username VARCHAR(30) NOT NULL default ''); insert into t1 values("bruno"),("test"); SELECT username from t1 WHERE username = 'bruno'; SELECT username from t1 WHERE username like 'bruno%' create index username on t1 (username); SELECT username from t1 WHERE username like 'bruno%'; And all above worked as expected. Did you check if 'make test' worked for you? (If LIKE would have changed, this should have failed) Regards, Monty