Bug #58232 | CallableStatement fails to fetch OUT parameter against 5.5 server | ||
---|---|---|---|
Submitted: | 16 Nov 2010 16:08 | Modified: | 26 Nov 2010 11:32 |
Reporter: | Tonci Grgin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | OS: | Any | |
Assigned to: | Tony Bedford | CPU Architecture: | Any |
Tags: | regression |
[16 Nov 2010 16:08]
Tonci Grgin
[19 Nov 2010 10:30]
Tonci Grgin
Pushed up to revision 1006. Explanation: c/J is using user variables to fetch result of stored function. OUT parameter name is "mangled" to ensure it does not collide with other user variables/parameter names (i.e. @com_mysql_jdbc_outparam_). Problem arises for RETURN values when their description is fetched from I__S (http://dev.mysql.com/doc/refman/5.5/en/parameters-table.html) as PARAMETER_NAME is NULL thus the NPE. Fix is in that visibility of DataBaseMetaDataUsingInfoSchema.hasParametersView has changed and "getter" was added. This is then used in CallableStatement to check if MySQL server has I__S.PARAMETERS table and handle null paramname correctly.
[26 Nov 2010 11:32]
Tony Bedford
An entry has been added to the 5.1.14 changelog: The CallableStatementRegression test suite failed with a Null Pointer Exception because the OUT parameter in the I__S.PARAMETERS table had no name, that is COLUMN_NAME had the value NULL.