fix timescale db type replacement (#15156)

Signed-off-by: querdenker2k <querdenker2k@gmx.de>
This commit is contained in:
Robert D
2023-07-02 21:20:50 +02:00
committed by GitHub
parent ea7eb9ff57
commit 99e78d84b5

View File

@@ -41,7 +41,7 @@ public class JdbcTimescaledbDAO extends JdbcPostgresqlDAO {
Properties properties = (Properties) this.databaseProps.clone();
// Adjust the jdbc url since the service name 'timescaledb' is only used to differentiate the DAOs
if (properties.containsKey("jdbcUrl")) {
properties.put("jdbcUrl", properties.getProperty("jdbcUrl").replace("timescaledb", "postgresql"));
properties.put("jdbcUrl", properties.getProperty("jdbcUrl").replace("jdbc:timescaledb", "jdbc:postgresql"));
}
return properties;
}