From d68baaa507dab20580ddee148a87d2970a1a716e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 21 Jan 2015 18:03:57 +0100 Subject: [PATCH] Attempt to speed-up db tests on non-H2 Replace TRUNCATE requests by DELETE FROM --- .../test/java/org/sonar/core/persistence/DatabaseCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java b/sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java index 52db5b3a811..a10d7cba64b 100644 --- a/sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java +++ b/sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java @@ -64,7 +64,7 @@ public abstract class DatabaseCommands { abstract List resetPrimaryKey(String table, int minSequenceValue); String getTruncateCommand(String table) { - return "TRUNCATE TABLE " + table; + return "DELETE FROM " + table; } public static DatabaseCommands forDialect(Dialect dialect) { -- 2.39.5