From 708361592b7f0a5639676f5be34d105643accbaf Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 15 Jul 2012 23:12:00 +0200 Subject: [PATCH] Try to fix support of bulk insert of properties with postgresql --- .../src/main/java/org/sonar/core/properties/PropertiesDao.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-core/src/main/java/org/sonar/core/properties/PropertiesDao.java b/sonar-core/src/main/java/org/sonar/core/properties/PropertiesDao.java index a496d826fc6..7dfab47df1e 100644 --- a/sonar-core/src/main/java/org/sonar/core/properties/PropertiesDao.java +++ b/sonar-core/src/main/java/org/sonar/core/properties/PropertiesDao.java @@ -122,6 +122,7 @@ public class PropertiesDao implements BatchComponent, ServerComponent { for (Map.Entry entry : properties.entrySet()) { mapper.deleteGlobalProperty(entry.getKey()); } + session.commit();//required for postgresql bulk inserts (?) for (Map.Entry entry : properties.entrySet()) { mapper.insert(new PropertyDto().setKey(entry.getKey()).setValue(entry.getValue())); } -- 2.39.5