Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
NamedParameterJdbcTemplate batchUpdate returns an array of size 1 when the batchArgs passed is an empty array [SPR-17476] #22008
The batchUpdate method of NamedParameterJdbcTemplate returns an array of size 1 when the batchArgs passed is an empty array.
int batchUpdate(String sql, SqlParameterSource batchArgs);
The batchUpdate method of the JdbcTemplate returns an empty array when the batchArgs passed is an empty array.
public int batchUpdate(String sql, List<Object> batchArgs) throws DataAccessException;
I am using spring-jdbc 4.2.9