BATCH-1488: fixed returned results parameter bug; added integration tests with Derby stored proc
This commit is contained in:
@@ -195,7 +195,9 @@ public class StoredProcedureItemReader<T> extends AbstractCursorItemReader<T> {
|
||||
callableStatement.registerOutParameter(1, cursorSqlType);
|
||||
}
|
||||
else {
|
||||
callableStatement.registerOutParameter(refCursorPosition, cursorSqlType);
|
||||
if (refCursorPosition > 0) {
|
||||
callableStatement.registerOutParameter(refCursorPosition, cursorSqlType);
|
||||
}
|
||||
}
|
||||
boolean results = callableStatement.execute();
|
||||
if (results) {
|
||||
|
||||
Reference in New Issue
Block a user