Bug #1673 DatabaseMetaData getColumns() ordinalPosition error with columnNamePattern
| Submitted: | 27 Oct 2003 6:27 | Modified: | 19 Nov 2003 11:29 |
|---|---|---|---|
| Reporter: | Tony Prichard | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S3 (Non-critical) |
| Version: | 3.1.0 alpha and previous | OS: | Windows (MS Windows) |
| Assigned to: | Mark Matthews | CPU Architecture: | Any |
[27 Oct 2003 6:27]
Tony Prichard
[31 Oct 2003 20:49]
Mark Matthews
MySQL's internal metadata does not yet provide the information that Connector/J would need to provide the correct ordinal position when a column filter expression is used.
[19 Nov 2003 11:29]
Mark Matthews
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
I found a way to fix this. It requires two queries (once to get the _full_ column list, and then re-map the ordinals). This should become more efficient once MySQL has full system tables (looks like 5.0 or 5.1).
The fix is in the 3.1 tree. You can check out a nightly snapshot from http://downloads.mysql.com/snapshots.php after 00:00 GMT on November 20th.
Thanks for your bug report!
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.