Found an interesting bug that I'm surprised has not been mentioned. When I run a query, and use aliases for column names, the aliased column names are not returned. Only the ACTUAL column name is returned.
Has anyone found a fix for this?
- I should also add that I'm running MySQL 5.0 and have not test this with another database.
I found the cause of the problem. Looks like the version 5.0.2 of the driver has some problems with Smith. I upgraded to the 5.0.4 driver and the problem has been corrected.
to the JDBC URL for your MySQL data source. See Connector/J Configuration Properties(search for useOldAliasMetadataBehaviornear the bottom of the page).
Strictly speaking, MySQL is correct about JDBC and Smith is wrong here. The column "name" is supposed to be the physical column name, and the column "label" is for the query result.