diff --git a/LaunchServer/source/auth/PostgreSQLSourceConfig.java b/LaunchServer/source/auth/PostgreSQLSourceConfig.java index 7686e62..4d1058d 100644 --- a/LaunchServer/source/auth/PostgreSQLSourceConfig.java +++ b/LaunchServer/source/auth/PostgreSQLSourceConfig.java @@ -66,6 +66,7 @@ } @LauncherAPI + @SuppressWarnings("deprecation") // Временный фикс Warnings public synchronized Connection getConnection() throws SQLException { if (source == null) { // New data source PGSimpleDataSource postgresqlSource = new PGSimpleDataSource(); @@ -73,6 +74,9 @@ // Set credentials postgresqlSource.setServerName(address); postgresqlSource.setPortNumber(port); + // TODO: Нужно переделать под несколько серверов: + //postgresqlSource.setServerNames(address); + //postgresqlSource.setPortNumbers(port); postgresqlSource.setUser(username); postgresqlSource.setPassword(password); postgresqlSource.setDatabaseName(database);