Skip to content

Commit

Permalink
Syntax for with recursive slightly different in SQL Server
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed May 24, 2024
1 parent 634bc2a commit af545ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/arel/visitors/sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ def collect_optimizer_hints(o, collector)
collector
end

def visit_Arel_Nodes_WithRecursive(o, collector)
collector << "WITH "
collect_ctes(o.children, collector)
end

# SQLServer ToSql/Visitor (Additions)

def visit_Arel_Nodes_SelectStatement_SQLServer_Lock(collector, options = {})
Expand Down

0 comments on commit af545ec

Please sign in to comment.