Skip to content

Commit

Permalink
Implement rails/rails#48068
Browse files Browse the repository at this point in the history
  • Loading branch information
lorint committed Aug 5, 2023
1 parent c85a2b2 commit a15a9bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/active_record/connection_adapters/trilogy_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def supports_lazy_transactions?
end

def quote_string(string)
with_trilogy_connection(allow_retry: true, uses_transaction: false) do |conn|
with_trilogy_connection(allow_retry: true, materialize_transactions: false) do |conn|
conn.escape(string)
end
end
Expand All @@ -205,10 +205,10 @@ def reconnect!
end
end

def with_trilogy_connection(uses_transaction: true, **_kwargs)
def with_trilogy_connection(materialize_transactions: true, **_kwargs)
@lock.synchronize do
verify!
materialize_transactions if uses_transaction
materialize_transactions if materialize_transactions
yield connection
end
end
Expand Down Expand Up @@ -325,7 +325,7 @@ def full_version
end

def get_full_version
with_trilogy_connection(allow_retry: true, uses_transaction: false) do |conn|
with_trilogy_connection(allow_retry: true, materialize_transactions: false) do |conn|
conn.server_info[:version]
end
end
Expand Down

0 comments on commit a15a9bc

Please sign in to comment.