提交 cc18034c 编写于 作者: A Aaron Patterson

group clause must be more specific

上级 ab9622ee
......@@ -281,7 +281,7 @@ def test_should_count_field_in_joined_table
end
def test_should_count_field_in_joined_table_with_group_by
c = Account.count('companies.id', :group => :firm_id, :joins => :firm)
c = Account.count('companies.id', :group => 'accounts.firm_id', :joins => :firm)
[1,6,2,9].each { |firm_id| assert c.keys.include?(firm_id) }
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册