/* Statements. */
public MSqlStatementResults executePreparedStatement(String statement) throws MDatabaseConnectionFailureException, MSqlStatementException {
- return this.executePreparedStatement(statement, new LinkedList<Object>());
+ return this.executePreparedStatement(statement, new LinkedList<Object>(), this.getLocalTypesMode());
}
public MSqlStatementResults executePreparedStatement(String statement, LinkedList<Object> parameters) throws MDatabaseConnectionFailureException, MSqlStatementException {
+ return this.executePreparedStatement(statement, parameters, this.getLocalTypesMode());
+ }
+
+ public MSqlStatementResults executePreparedStatement(String statement, LinkedList<Object> parameters, boolean localTypesMode) throws MDatabaseConnectionFailureException, MSqlStatementException {
if (MText.isBlank(statement)) {
throw new IllegalArgumentException("Invalid 'statement': null or empty.");
}
}
// Execute the statement and parse the results.
preparedStatement.execute();
- results = new MSqlStatementResults(preparedStatement, this.getLocalTypesMode());
+ results = new MSqlStatementResults(preparedStatement, localTypesMode);
this.logStatement(preparedStatement.toString());
}
catch (SQLException exception) {