Skip to content

Commit

Permalink
Use Trilogy#discard! when discard! called on TrilogyAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianna-chang-shopify committed Apr 18, 2023
1 parent 7239ec1 commit 43f03ea
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -207,7 +207,11 @@ def disconnect!
end

def discard!
self.connection = nil
super
unless connection.nil?
connection.discard!
self.connection = nil
end
end

def each_hash(result)
Expand Down

0 comments on commit 43f03ea

Please sign in to comment.