Переглянути джерело

remove jdbcTemplate in ThreadLocal after fetching it

sunyj 7 роки тому
батько
коміт
4057fbaebe

+ 1 - 0
src/main/java/com/uas/ps/product/sync/WaitSyncHelper.java

@@ -85,6 +85,7 @@ public class WaitSyncHelper {
             batchSize = syncRepository.getBatchSize();
             syncRepository.unsetSessionVariable();
         } else {
+            jdbcTemplates.remove();
             batchSize = jdbcTemplate.execute(new CallableStatementCreator() {
                 @Override
                 public CallableStatement createCallableStatement(Connection connection) throws SQLException {