Skip to content

Commit b59befc

Browse files
authored
Merge pull request rails#53256 from JoeDupuis/fix-recursive-cte-doc
Fix an omission in the recursive CTE documentation
2 parents f1be11a + 859fbd2 commit b59befc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def with!(*args) # :nodoc:
506506
#
507507
# 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')])
508508
# # => ActiveRecord::Relation
509-
# # WITH post_and_replies AS (
509+
# # WITH RECURSIVE post_and_replies AS (
510510
# # (SELECT * FROM posts WHERE id = 42)
511511
# # UNION ALL
512512
# # (SELECT * FROM posts JOIN posts_and_replies ON posts.in_reply_to_id = posts_and_replies.id)

0 commit comments

Comments
 (0)