BATCH-1488: fixed returned results parameter bug; added integration tests with Derby stored proc

This commit is contained in:
trisberg
2010-01-29 07:34:23 +00:00
parent d0a63223a9
commit 5512054289
17 changed files with 249 additions and 21 deletions

View File

@@ -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) {