mlmw92 commented on issue #17204:
URL:
https://github.com/apache/shardingsphere/issues/17204#issuecomment-2603525217
I found that adding the following code to `PostgreSQLDatabaseMetaData` can
solve this problem
```java
@Override
public Optional<String> getDefaultSchema() {
return this.defaultSchema != null ? Optional.of(this.defaultSchema)
: Optional.of("public");
}
@Override
public String getSchema(Connection connection) {
this.defaultSchema =
DialectDatabaseMetaData.super.getSchema(connection);
return this.defaultSchema;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]