Bug #11718 | ResultSet.getObject() returns incorrect object class with ORDER BY clause | ||
---|---|---|---|
Submitted: | 4 Jul 2005 8:31 | Modified: | 29 Aug 2005 21:48 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.1.10, 4.1.12, 5.0.7 | OS: | |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[4 Jul 2005 8:31]
Shane Bester
[4 Jul 2005 10:49]
MySQL Verification Team
Updated synopsis.
[4 Jul 2005 16:17]
Mark Matthews
Not a Connector/J bug. The JDBC driver uses whatever type the server tells it to use. This is yet another case of query resolution through temporary tables (and other side effects of ORDER BY) that cause the server to return non-correct types to clients.
[5 Jul 2005 6:06]
MySQL Verification Team
Updated submission
[17 Aug 2005 10:18]
Evgeny Potemkin
Bug not present (can't repeat) in 5.0.12. tested on linux x86_64
[17 Aug 2005 19:44]
Evgeny Potemkin
In v4.1 create_tmp_field_from_item() was creating tmp field without regard to original field type of Item. this results in wrong type being reported to client.
[17 Aug 2005 19:52]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/28414
[22 Aug 2005 13:05]
Evgeny Potemkin
Backport from 5.0 Fixed in 4.1.15, cset 1.2377.3.1
[29 Aug 2005 21:48]
Mike Hillyer
Documented in 4.1.15 changelog: <listitem><para>Queries that created implicit temporary tables could return incorrect column types for some columns. (Bug #11718)</para></listitem>