Skip to content

Commit

Permalink
Make Database @Transactions a compare by identity hash
Browse files Browse the repository at this point in the history
This is faster, and would fix a theoretical bug in the case where
a driver implemented a connection object that could compare equal
(hash/eql?) with another connection object.
  • Loading branch information
jeremyevans committed Feb 21, 2024
1 parent adde5bb commit 17f0509
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel/database/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def initialize(opts = OPTS)
@schemas = {}
@prepared_statements = {}
@transactions = {}
@transactions.compare_by_identity
@symbol_literal_cache = {}

@timezone = nil
Expand Down

0 comments on commit 17f0509

Please sign in to comment.