/**
Check to see if a statement requires to be executed via a callable statement.
*/
void checkRequiresCallableStatement(Activation activation) throws SQLException {
ParameterValueSet pvs = activation.getParameterValueSet();
if (pvs == null)
return;
if (pvs.checkNoDeclaredOutputParameters()) {
try {
activation.close();
} catch (StandardException se) {
}
throw newSQLException(SQLState.REQUIRES_CALLABLE_STATEMENT, SQLText);