[CONJ-494] Handle PrepareStatement.getParameterMetaData() if query cannot be PREPAREd Created: 2017-06-15 Updated: 2017-06-26 Resolved: 2017-06-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | metadata |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.3, 1.6.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
To identify parameter meta data, when useServerPrepStmts=false, driver will execute a COM_STMT_PREPARE (prepare command) so server return parameters informations. If query cannot be prepare, a SQL exception will be throw without closing this PREPARE command, creating a leak. |