Network Server should not use the underlying embedded
Prepared statement when accessing a BrokeredPreparedStatement.
- Get prepared statement
- @return prepared statement
protected PreparedStatement getPreparedStatement() throws SQLException
if (ps instanceof BrokeredPreparedStatement)
This code, for some unknown reason due to lack of comments, is getting the underlying embedded statement
from a BrokeredPreparedStatement. This should not be allowed, the BrokeredStatement wrappers are there to
hide the embedded statement object as it can change under the covers of the wrapper.