Closed awal11 closed 5 years ago
It looks like there is a difference between how "SET application_name =" and "SET SESSION CHARACTERISTICS AS TRANSACTION" are handled internally. PgConnection execSQLUpdate executeWithFlags checks the results and produces the error because there is a result. The setTransactionIsolation suffers from the same. The solution is not clear to me. Ignoring the boolean is one option.
The invocation of setReadOnly is done by presto, beyond my control, so I think if we want to have the driver usable - we should not throw exceptions here. I am not familiar enough with the driver to come up with better ideas than ignoring the attempt to change the setting. Btw-I mixed up pull requests for issue 1 and 2, i can redo 2 with separate branch etc, next week. On Tue, 5 Feb 2019 at 01:58, bobstarbird notifications@github.com wrote:
It looks like there is a difference between how "SET application_name =" and "SET SESSION CHARACTERISTICS AS TRANSACTION" are handled internally. PgConnection execSQLUpdate executeWithFlags checks the results and produces the error because there is a result. The setTransactionIsolation suffers from the same. The solution is not clear to me. Ignoring the boolean is one option.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marklogic-community/ml-jdbc-driver/issues/2#issuecomment-460474268, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQQxPrGFFPNwZ1qPgs_xdm-QB418IvMks5vKNc5gaJpZM4Z3ci2 .
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
no matter what I do
AFAIK the driver will be always read only so my suggestion is to
Would you accept a pull request to implement it?