Patch ActiveRecord with PR 54658

This commit is contained in:
2025-03-22 14:14:42 +01:00
parent 8401424efa
commit 4c867daabb
8 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
module CoreExt::Arel::Visitors::ToSqlCteUpdateAndDelete
def visit_Arel_Nodes_DeleteStatement(o, collector)
if o.with
collector = visit o.with, collector
collector << " "
end
super
end
def visit_Arel_Nodes_UpdateStatement(o, collector)
if o.with
collector = visit o.with, collector
collector << " "
end
super
end
end