BatchSqlUpdate support for named parameters [SPR-10435] #15068
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Giovanni Botta opened SPR-10435 and commented
The BatchSqlUpdate class doesn't override the updateByNamedParam(Map<String,?> paramMap) method. It would be useful to override this so that named parameters would be supported when performing batch updates and the same map could be reused to pass the parameters around (simple and with minimal space overhead).
NamedParameterJdbcTemplate has the batchUpdate(String sql, Map<String,?>[] batchValues) method to do this but, besides having a different interface, it requires an array of maps, with increased overhead, code bloating and complication reusing the maps (http://stackoverflow.com/questions/15277584/spring-batchsqlupdate-vs-namedparameterjdbctemplate-using-named-parameters).
Thanks
Giovanni
Affects: 3.2 GA
Attachments:
The text was updated successfully, but these errors were encountered: