Skip to content

Commit

Permalink
Fix an omission in the recursive CTE documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeDupuis committed Oct 10, 2024
1 parent f1be11a commit 859fbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def with!(*args) # :nodoc:
#
# Post.with_recursive(post_and_replies: [Post.where(id: 42), Post.joins('JOIN post_and_replies ON posts.in_reply_to_id = post_and_replies.id')])
# # => ActiveRecord::Relation
# # WITH post_and_replies AS (
# # WITH RECURSIVE post_and_replies AS (
# # (SELECT * FROM posts WHERE id = 42)
# # UNION ALL
# # (SELECT * FROM posts JOIN posts_and_replies ON posts.in_reply_to_id = posts_and_replies.id)
Expand Down

0 comments on commit 859fbd2

Please sign in to comment.