Skip to content

Commit 17f0509

Browse files
committed
Make Database @Transactions a compare by identity hash
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.
1 parent adde5bb commit 17f0509

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/sequel/database/misc.rb

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def initialize(opts = OPTS)
149149
@schemas = {}
150150
@prepared_statements = {}
151151
@transactions = {}
152+
@transactions.compare_by_identity
152153
@symbol_literal_cache = {}
153154

154155
@timezone = nil

0 commit comments

Comments
 (0)