Bug #115249 | Second stored procedure call with cacheCallableStmts might fail | ||
---|---|---|---|
Submitted: | 7 Jun 2024 7:33 | Modified: | 7 Jun 2024 13:47 |
Reporter: | Patrick Beuks | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 8.1.0,8.4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | cacheCallableStmts, parameter meta data, Stored pocedures |
[7 Jun 2024 7:33]
Patrick Beuks
[7 Jun 2024 7:36]
Patrick Beuks
I forgot to add the error message: java.sql.SQLException: Parameter number 1 is not an OUT parameter
[7 Jun 2024 7:39]
Patrick Beuks
Small type in the sql code (left trailing comma) ```java @Select( "{CALL my_proc(" + "0," + "#{inField,mode=IN,jdbcType=VARCHAR}," + "#{outField,mode=OUT,jdbcType=VARCHAR}" + ")}" ) @Options(statementType = StatementType.CALLABLE) void myProc(Map<String, Object> paramMap); ```
[7 Jun 2024 12:40]
MySQL Verification Team
Hello Patrick, Thank you for the bug report. Please upgrade to latest version and report us back if issue persist even in latest version along with test case. Also, see Bug #73774 which is fixed in Connector/J 8.3.0. Thank you. Regards, Ashwini Patil
[7 Jun 2024 13:05]
Patrick Beuks
Tested with mysql-connector-j-8.4.0 (Revision: 1c3f5c149e0bfe31c7fbeb24e2d260cd890972c4) Still have the same problem
[7 Jun 2024 13:47]
Patrick Beuks
"along with test case" I have provided reproduction steps. What kind of test case would you like to see?
[15 Jul 2024 22:33]
Filipe Silva
Duplicate of Bug#115265.