matthiasblaesing commented on PR #7892:
URL: https://github.com/apache/netbeans/pull/7892#issuecomment-2450794860
Thanks for taking care, but this was not tested. I ran this PR against the
current postgres docker container and it immediately blows up:
```
INFO [org.netbeans.modules.db.explorer.DatabaseConnection]: Unable to
execute command:
set search_path "public"
ERROR: syntax error at or near ""public""
Position: 17
org.netbeans.lib.ddl.DDLException: Unable to execute command:
set search_path "public"
ERROR: syntax error at or near ""public""
Position: 17
at
org.netbeans.lib.ddl.impl.AbstractCommand.execute(AbstractCommand.java:204)
at
org.netbeans.modules.db.explorer.node.DDLHelper.setDefaultSchema(DDLHelper.java:50)
at
org.netbeans.modules.db.explorer.DatabaseConnection.setDefaultSchema(DatabaseConnection.java:651)
[catch] at
org.netbeans.modules.db.explorer.DatabaseConnection.doConnect(DatabaseConnection.java:909)
at
org.netbeans.modules.db.explorer.DatabaseConnection.access$200(DatabaseConnection.java:78)
at
org.netbeans.modules.db.explorer.DatabaseConnection$3.run(DatabaseConnection.java:963)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
```
This:
https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH
indicates, that you are looking for `SET search_path TO`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists