forked from fixin.me/fixin.me
Patch ActiveRecord with PR 54658
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
module CoreExt::Arel::Nodes::DeleteStatementCteUpdateAndDelete
|
||||
attr_accessor :with
|
||||
|
||||
def initialize(...)
|
||||
super
|
||||
@with = nil
|
||||
end
|
||||
|
||||
def hash
|
||||
[self.class, @relation, @wheres, @orders, @limit, @offset, @key, @with].hash
|
||||
end
|
||||
|
||||
def eql?(other)
|
||||
eql?(other) && self.with == other.with
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,16 @@
|
||||
module CoreExt::Arel::Nodes::UpdateStatementCteUpdateAndDelete
|
||||
attr_accessor :with
|
||||
|
||||
def initialize(...)
|
||||
super
|
||||
@with = nil
|
||||
end
|
||||
|
||||
def hash
|
||||
[self.class, @relation, @wheres, @orders, @limit, @offset, @key, @with].hash
|
||||
end
|
||||
|
||||
def eql?(other)
|
||||
eql?(other) && self.with == other.with
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user