提交 6923a532 编写于 作者: R Ryuta Kamizono

"Neither relation may have a #limit, #offset, or #distinct set." is not true

ff45b9e9 had removed that limitation for `or`.

[ci skip]
上级 42914820
......@@ -704,7 +704,7 @@ def rewhere(conditions)
#
# The two relations must be structurally compatible: they must be scoping the same model, and
# they must differ only by #where (if no #group has been defined) or #having (if a #group is
# present). Neither relation may have a #limit, #offset, or #distinct set.
# present).
#
# Post.where("id = 1").or(Post.where("author_id = 3"))
# # SELECT `posts`.* FROM `posts` WHERE ((id = 1) OR (author_id = 3))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册