INT-3265 Stored Proc Debug Logging
Set up stored procedure name in `SimpleJdbcCall` before setting up row mappers; previously the debug logg showed `[null]` for the procedure name. JIRA: https://jira.springsource.org/browse/INT-3265
This commit is contained in:
committed by
Artem Bilan
parent
2fb0707465
commit
6df2e5b026
@@ -230,6 +230,13 @@ public class StoredProcExecutor implements BeanFactoryAware, InitializingBean {
|
||||
|
||||
final SimpleJdbcCall simpleJdbcCall = new SimpleJdbcCall(this.dataSource);
|
||||
|
||||
if (this.isFunction) {
|
||||
simpleJdbcCall.withFunctionName(storedProcedureName);
|
||||
}
|
||||
else {
|
||||
simpleJdbcCall.withProcedureName(storedProcedureName);
|
||||
}
|
||||
|
||||
if (this.ignoreColumnMetaData) {
|
||||
simpleJdbcCall.withoutProcedureColumnMetaDataAccess();
|
||||
}
|
||||
@@ -248,13 +255,6 @@ public class StoredProcExecutor implements BeanFactoryAware, InitializingBean {
|
||||
simpleJdbcCall.withReturnValue();
|
||||
}
|
||||
|
||||
if (this.isFunction) {
|
||||
simpleJdbcCall.withFunctionName(storedProcedureName);
|
||||
}
|
||||
else {
|
||||
simpleJdbcCall.withProcedureName(storedProcedureName);
|
||||
}
|
||||
|
||||
simpleJdbcCall.getJdbcTemplate().setSkipUndeclaredResults(this.skipUndeclaredResults);
|
||||
|
||||
return simpleJdbcCall;
|
||||
|
||||
Reference in New Issue
Block a user