]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5801 test can not commit an auto-commit connection on non-H2 dbs
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 24 Nov 2014 06:33:07 +0000 (07:33 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 24 Nov 2014 06:33:07 +0000 (07:33 +0100)
server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java

index 772d7f9ad8eee88107155a290a6ddbac2140b1d5..e58ad44f63d5c1e7286b95d86912dc6e29b88ada 100644 (file)
@@ -98,7 +98,6 @@ public class SourceLineResultSetIteratorTest {
     PreparedStatement stmt = connection.prepareStatement("UPDATE file_sources SET data = ? WHERE id=1");
     stmt.setString(1, "plouf");
     stmt.executeUpdate();
-    connection.commit();
     stmt.close();
 
     SourceLineResultSetIterator iterator = SourceLineResultSetIterator.create(dbClient, connection, 0L);