Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Vinay Shankar opened SPR-17476 and commented
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
Referenced from: commits 4f5ae22, 362c59c, 0167b79
Backported to: 5.0.11, 4.3.21
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
Good catch, we accidentally returned an array with 0 as an element instead of 0 length there. Fixed for 5.1.3 now, and backported to 5.0.11 and 4.3.21 as well.
Sorry, something went wrong.
Vinay Shankar commented
Thank you for the fix.
No branches or pull requests