We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f75187 commit 0e78294Copy full SHA for 0e78294
lib/arjdbc/derby/adapter.rb
@@ -109,7 +109,9 @@ def init_connection(jdbc_connection)
109
110
def configure_connection
111
# must be done or SELECT...FOR UPDATE won't work how we expect :
112
- @connection.transaction_isolation = :serializable
+ tx_isolation = config[:transaction_isolation] # set false to leave as is
113
+ tx_isolation = :serializable if tx_isolation.nil?
114
+ @connection.transaction_isolation = tx_isolation if tx_isolation
115
# if a user name was specified upon connection, the user's name is the
116
# default schema for the connection, if a schema with that name exists
117
set_schema(config[:schema]) if config.key?(:schema)
0 commit comments