Bug #1206 | ResultSetMetaData.getColumnType(int) returns VARCHAR (12) for DATETIME columns | ||
---|---|---|---|
Submitted: | 5 Sep 2003 14:54 | Modified: | 5 Sep 2003 15:50 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 4.1.0-alpha | OS: | Windows (Windows 2000 Pro V 5.0 sp2) |
Assigned to: | CPU Architecture: | Any |
[5 Sep 2003 14:54]
[ name withheld ]
[5 Sep 2003 15:50]
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 This has been fixed for quite some time in the nightly builds of 3.0.x and 3.1.x. It was related to protocol-level changes in MySQL-4.1.0. I've tested both with your code, and get the correct type, 'DATETIME'. Check out http://mmmysql.sourceforge.net/snapshots/ for nightly builds of Connector/J that you can test this with yourself.
[8 Sep 2003 12:29]
[ name withheld ]
This seems to be an issue only with the 1.3.1_04 jdk. I upgraded to 1.4.2 and the problem was corrected.