Commit 9ce079590e56e53e69ab28ed3cc9a6ee31fb9b6d
1 parent
f7f6f5cd
Fixed installation script after Sonar related refactoring
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -59,7 +59,7 @@ public class SqlDatabaseSchemaService implements DatabaseSchemaService { | @@ -59,7 +59,7 @@ public class SqlDatabaseSchemaService implements DatabaseSchemaService { | ||
59 | Path schemaFile = Paths.get(this.dataDir, SQL_DIR, SCHEMA_SQL); | 59 | Path schemaFile = Paths.get(this.dataDir, SQL_DIR, SCHEMA_SQL); |
60 | try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { | 60 | try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { |
61 | String sql = new String(Files.readAllBytes(schemaFile), Charset.forName("UTF-8")); | 61 | String sql = new String(Files.readAllBytes(schemaFile), Charset.forName("UTF-8")); |
62 | - conn.prepareStatement(sql).execute(); //NOSONAR, ignoring because method used to load initial thingsboard database schema | 62 | + conn.createStatement().execute(sql); //NOSONAR, ignoring because method used to load initial thingsboard database schema |
63 | } | 63 | } |
64 | 64 | ||
65 | } | 65 | } |