Bug #5832 | SELECT doesn't return records in some cases | ||
---|---|---|---|
Submitted: | 30 Sep 2004 20:19 | Modified: | 5 Oct 2004 15:18 |
Reporter: | Victoria Reznichenko | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1, 5.0 | OS: | Windows (Windows, Linux) |
Assigned to: | Alexander Barkov | CPU Architecture: | Any |
[30 Sep 2004 20:19]
Victoria Reznichenko
[30 Sep 2004 20:22]
MySQL Verification Team
Verified on Windows (version: 4.1.5 and 5.0.1) and Linux(4.1.6, 5.0.2)
[4 Oct 2004 14:30]
Heikki Tuuri
Hi! The bug now manifests also in the latest InnoDB-4.0.6 tree, because InnoDB now stores only n UTF-chars to an index defined as a(n), where a is a string type column. The bug happens because MySQL looks from the index with the FULL 7 character string, while the index only contains the first 4 characters. Regards, Heikki (gdb) print search_tuple->fields[1] $3 = {data = 0x8b4527c, len = 7, type = {mtype = 5, prtype = 2163196, len = 10, prec = 0}} (gdb) x/7b 0x8b4527c 0x8b4527c: 0x6c 0x65 0x74 0x74 0x65 0x72 0x61 (gdb)
[5 Oct 2004 3:18]
Michael Grabenstein
Note v4.1.5 works if you remove all of the utf8 settings in the example.
[5 Oct 2004 15:18]
Alexander Barkov
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html