diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2021-12-17 10:07:10 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-02-02 20:02:54 +0000 |
commit | bf5f5f91ed7a6489fda3f6d4ee163ad94aaedcb6 (patch) | |
tree | bd3e7958534488ce2e8d02edb717fae8fb063402 /server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java | |
parent | da25d9b1d4a2459bb201dd9b6e8166bd55149c57 (diff) | |
download | sonarqube-bf5f5f91ed7a6489fda3f6d4ee163ad94aaedcb6.tar.gz sonarqube-bf5f5f91ed7a6489fda3f6d4ee163ad94aaedcb6.zip |
SONAR-15845 Upgrade H2 database dependency to 2.X
Diffstat (limited to 'server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java')
-rw-r--r-- | server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java index db99116233d..169bf9763c2 100644 --- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java +++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/SQDatabase.java @@ -56,6 +56,7 @@ import org.sonar.server.platform.db.migration.version.DbVersion; import static com.google.common.base.Preconditions.checkState; public class SQDatabase extends DefaultDatabase { + private static final String IGNORED_KEYWORDS_OPTION = ";NON_KEYWORDS=VALUE"; private final boolean createSchema; private SQDatabase(Settings settings, boolean createSchema) { @@ -71,7 +72,7 @@ public class SQDatabase extends DefaultDatabase { MapSettings settings = new MapSettings() .setProperty("sonar.jdbc.dialect", "h2") .setProperty("sonar.jdbc.driverClassName", "org.h2.Driver") - .setProperty("sonar.jdbc.url", "jdbc:h2:mem:" + name) + .setProperty("sonar.jdbc.url", "jdbc:h2:mem:" + name + IGNORED_KEYWORDS_OPTION) .setProperty("sonar.jdbc.username", "sonar") .setProperty("sonar.jdbc.password", "sonar"); return new SQDatabase(settings, createSchema); |