[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.


Generated at Thu Feb 08 03:16:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.