marklogic-community / ml-jdbc-driver

Making JDBC connections to MarkLogic SQL/ODBC Server
Other
2 stars 4 forks source link

PgConnection.setTransactionIsolation() throws exception whenever you interact with it #4

Closed awal11 closed 5 years ago

awal11 commented 5 years ago

This issue is pretty similar to #2 When I want to read the data from ML, some DB pool library tries to reset the transactionIsolation and whatever I try - I get an exception

Caused by: 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.setTransactionIsolation(PgConnection.java:838)

As the driver is always read only - the easiest solution is to comment out any attempt to change the default setting.

Let me know if you will accept a pull request for it.

bobstarbird commented 5 years ago

I will accept a pull request. I would like to get the repository into a master/branch state and then support the request. And thank you for your major contributions!

awal11 commented 5 years ago

I am not sure if I understand what do you mean by "master/branch state". If I create a fork, fix bug locally and create pull request against current master - will that be enough?