-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
I am trying to use the driver together with PrestoDB. I encountered few issues, this would be the one of them.
Presto sets the JDBC driver to read only mode and this triggers an exception
org.postgresql.util.PSQLException: A result was returned when none was expected.
at org.postgresql.jdbc.PgConnection.execSQLUpdate(PgConnection.java:440)
at org.postgresql.jdbc.PgConnection.setReadOnly(PgConnection.java:699)
at Main.main(Main.java:11)
no matter what I do
- without any prior configuration of the connection URL, just by invoking conn.setReadOnly(true);
- adding readonly=true suggested in Readme.md does nothing because it is case sensitive and should be readOnly=true
- if I add proper readOnly=true to the connection url - it throws exception directly from this line DriverManager.getConnection("jdbc:marklogic://localhost:8077/?readOnly=true","user","pw") as the PG driver was not adopted properly
AFAIK the driver will be always read only so my suggestion is to
- get rid of all the code related to handling readOnly
- fix the readme to indicate it more clearly
Would you accept a pull request to implement it?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working