Needs a null check for less lenient database platforms
This commit is contained in:
@@ -39,7 +39,11 @@ public class IbatisDrivingQueryInputSource extends DrivingQueryInputSource {
|
||||
* @see org.springframework.batch.io.driving.DrivingQueryInputSource#read()
|
||||
*/
|
||||
public Object read() {
|
||||
return sqlMapClientTemplate.queryForObject(detailsQueryId, super.read());
|
||||
Object key = super.read();
|
||||
if (key==null) {
|
||||
return null;
|
||||
}
|
||||
return sqlMapClientTemplate.queryForObject(detailsQueryId, key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user