fix timescale db type replacement (#15156)
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
This commit is contained in:
@@ -41,7 +41,7 @@ public class JdbcTimescaledbDAO extends JdbcPostgresqlDAO {
|
|||||||
Properties properties = (Properties) this.databaseProps.clone();
|
Properties properties = (Properties) this.databaseProps.clone();
|
||||||
// Adjust the jdbc url since the service name 'timescaledb' is only used to differentiate the DAOs
|
// Adjust the jdbc url since the service name 'timescaledb' is only used to differentiate the DAOs
|
||||||
if (properties.containsKey("jdbcUrl")) {
|
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;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user