This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit e0a62e0a052089c53bb923e8103d319c0fea6821
Author: Martin Desruisseaux <martin.desruisse...@geomatys.com>
AuthorDate: Tue Jun 24 16:35:05 2025 +0200

    Remove the call to `PGSimpleDataSource.setCurrentSchema(String)` as it does 
not work anymore with PostgreSQL 16.
    https://github.com/pgjdbc/pgjdbc/issues/3685
---
 .../test/org/apache/sis/metadata/sql/TestDatabase.java                 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/sql/TestDatabase.java
 
b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/sql/TestDatabase.java
index 0da93bf15a..ceb470cc21 100644
--- 
a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/sql/TestDatabase.java
+++ 
b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/sql/TestDatabase.java
@@ -259,7 +259,6 @@ public class TestDatabase implements AutoCloseable {
         // Server default to "localhost".
         ds.setDatabaseName(NAME);
         ds.setApplicationName("Apache SIS test database");
-        ds.setCurrentSchema(schema);
         /*
          * Current version does not use pooling on the assumption that 
connections to local host are fast enough.
          * We verify that the schema does not exist, even if the `create` 
argument is `false`, because we assume
@@ -293,7 +292,7 @@ public class TestDatabase implements AutoCloseable {
                          * If the limit (in seconds) is exceeded, an 
SQLTimeoutException is thrown and test fails.
                          */
                         s.setQueryTimeout(10);
-                        s.execute("DROP SCHEMA \"" + ds.getCurrentSchema() + 
"\" CASCADE");
+                        s.execute("DROP SCHEMA \"" + schema + "\" CASCADE");
                     }
                 }
             }

Reply via email to