Needs a null check for less lenient database platforms

This commit is contained in:
dsyer
2007-12-12 22:24:48 +00:00
parent cc69a6a40c
commit b69ec2117b

View File

@@ -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);
}
/**