Bug #9320 | getMetaData on a prepared INSERT adds null row | ||
---|---|---|---|
Submitted: | 21 Mar 2005 20:03 | Modified: | 24 Mar 2005 18:20 |
Reporter: | Erik Tkal | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 3.1.7 | OS: | Windows (WinXP and Solaris) |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[21 Mar 2005 20:03]
Erik Tkal
[21 Mar 2005 20:12]
Mark Matthews
If you're not using MySQL-4.1.x or newer, the JDBC driver has to issue a query to get a result set back to get the metadata, as MySQL-4.0 and older don't actually have prepared statements (they're all emulated by the JDBC driver for these older servers). We need to add a check to perform this for SELECT queries only, and we'll fix this for 3.1.8, which is to be released sometime later this week. As a workaround, if you _know_ a query won't be a SELECT, you could not call .getMetaData().
[24 Mar 2005 18:20]
Mark Matthews
Fixed for 3.1.8. Thanks for your bug report!