minor changes in the DEV tools and more (#1578)

This commit is contained in:
Ludy
2024-07-22 22:15:10 +02:00
committed by GitHub
parent cbe92269f4
commit 6eb79e65fa
7 changed files with 45 additions and 10 deletions

View File

@@ -179,11 +179,12 @@ public class DatabaseBackupHelper implements DatabaseBackupInterface {
}
private boolean executeDatabaseScript(Path scriptPath) {
try (Connection conn = DriverManager.getConnection(url, "sa", "");
Statement stmt = conn.createStatement()) {
String query = "RUNSCRIPT from ?;";
String query = "RUNSCRIPT from '" + scriptPath.toString() + "';";
stmt.execute(query);
try (Connection conn = DriverManager.getConnection(url, "sa", "");
PreparedStatement stmt = conn.prepareStatement(query)) {
stmt.setString(1, scriptPath.toString());
stmt.execute();
log.info("Database import completed: {}", scriptPath);
return true;
} catch (SQLException e) {

View File

@@ -360,6 +360,8 @@ public class ApplicationProperties {
+ useAsUsername
+ ", provider="
+ provider
+ ", client="
+ client
+ ", scopes="
+ scopes
+ "]";