| Bug #1673 | DatabaseMetaData getColumns() ordinalPosition error with columnNamePattern | ||
|---|---|---|---|
| Submitted: | 27 Oct 2003 7:27 | Modified: | 19 Nov 2003 12:29 |
| Reporter: | Tony Prichard | ||
| Status: | Closed | ||
| Category: | Connector/J | Severity: | S3 (Non-critical) |
| Version: | 3.1.0 alpha and previous | OS: | Microsoft Windows (MS Windows) |
| Assigned to: | Mark Matthews | Target Version: | |
[27 Oct 2003 7:27]
Tony Prichard
[31 Oct 2003 21: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 12: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!
