aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/dialect/H2.java2
-rw-r--r--sonar-core/src/test/java/org/sonar/core/persistence/dialect/H2Test.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/dialect/H2.java b/sonar-core/src/main/java/org/sonar/core/persistence/dialect/H2.java
index 3e572aaae35..0c80c7dc445 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/dialect/H2.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/dialect/H2.java
@@ -30,7 +30,7 @@ public class H2 extends AbstractDialect {
public static final String ID = "h2";
public H2() {
- super(ID, "h2", "org.h2.Driver", "true", "false", "SELECT 1");
+ super(ID, ".h2.", "org.h2.Driver", "true", "false", "SELECT 1");
}
public Class<? extends org.hibernate.dialect.Dialect> getHibernateDialectClass() {
diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/dialect/H2Test.java b/sonar-core/src/test/java/org/sonar/core/persistence/dialect/H2Test.java
index 6c4737514d1..15a519e70f1 100644
--- a/sonar-core/src/test/java/org/sonar/core/persistence/dialect/H2Test.java
+++ b/sonar-core/src/test/java/org/sonar/core/persistence/dialect/H2Test.java
@@ -42,7 +42,7 @@ public class H2Test {
@Test
public void should_configure() {
assertThat(h2.getId()).isEqualTo("h2");
- assertThat(h2.getActiveRecordDialectCode()).isEqualTo("h2");
+ assertThat(h2.getActiveRecordDialectCode()).isEqualTo(".h2.");
assertThat(h2.getDefaultDriverClassName()).isEqualTo("org.h2.Driver");
assertThat(h2.getValidationQuery()).isEqualTo("SELECT 1");
}