Set first batch arg once while executing batch with generated keys - #37308
Conversation
|
Should I create a separated PR for second commit or keep it as is? it's related to new |
Since we typically squash commits in a PR before merging, it would be better to pre-squash them into a single commit with an all-encompassing title such as "Set first batch arg once while executing batch with generated keys". The commit message could then be a combination of the current two commit messages. I'll go ahead and update the current PR title to reflect that. |
|
Should the first commit be backported to 6.x? |
6.x is no longer under open source support, and this is more of an enhancement than a bug fix, so we don't plan to backport this. |
`batchArgs[0]` in `NamedParameterJdbcTemplate` and `indexedBatch[0]` in `DefaultJdbcClient` are already set by `pscf::newPreparedStatementCreator`, so it is unnecessary to set them again via `BatchPreparedStatementSetter::setValues`. Closes spring-projectsgh-37308 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
|
This has been merged into Thanks |
batchArgs[0]is already set bypscf::newPreparedStatementCreator, it is unnecessary to set it again byBatchPreparedStatementSetter::setValues.