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-main/src/main/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-main/src/main/java')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/config/JdbcSettings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/config/JdbcSettings.java b/server/sonar-main/src/main/java/org/sonar/application/config/JdbcSettings.java index 759d02c5a48..0acc34bdfea 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/config/JdbcSettings.java +++ b/server/sonar-main/src/main/java/org/sonar/application/config/JdbcSettings.java @@ -43,7 +43,7 @@ import static org.sonar.process.ProcessProperties.Property.JDBC_URL; import static org.sonar.process.ProcessProperties.Property.PATH_HOME; public class JdbcSettings implements Consumer<Props> { - + private static final String IGNORED_KEYWORDS_OPTION = ";NON_KEYWORDS=VALUE"; private static final int JDBC_EMBEDDED_PORT_DEFAULT_VALUE = 9092; enum Provider { @@ -119,7 +119,7 @@ public class JdbcSettings implements Consumer<Props> { } else { host = ip.getHostAddress(); } - return format("jdbc:h2:tcp://%s:%d/sonar", host, embeddedDatabasePort); + return format("jdbc:h2:tcp://%s:%d/sonar%s", host, embeddedDatabasePort, IGNORED_KEYWORDS_OPTION); } private static void warnIfUrlIsSet(int port, String existing, String expectedUrl) { |