]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "Attempt to speed-up db tests on non-H2"
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 21 Jan 2015 17:38:28 +0000 (18:38 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 21 Jan 2015 17:38:28 +0000 (18:38 +0100)
This reverts commit d68baaa507dab20580ddee148a87d2970a1a716e.

sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java

index a10d7cba64b329f4711bcd4d4b769098aeb4ba45..52db5b3a811e7a9792805b51e080ed44b9bf66ab 100644 (file)
@@ -64,7 +64,7 @@ public abstract class DatabaseCommands {
   abstract List<String> resetPrimaryKey(String table, int minSequenceValue);
 
   String getTruncateCommand(String table) {
-    return "DELETE FROM " + table;
+    return "TRUNCATE TABLE " + table;
   }
 
   public static DatabaseCommands forDialect(Dialect dialect) {