mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #9650 from yahonda/group_by_oracle
Address ActiveRecord::StatementInvalid: OCIError: ORA-00979
This commit is contained in:
commit
9432c55f12
1 changed files with 2 additions and 2 deletions
|
@ -1156,8 +1156,8 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
end
|
||||
|
||||
def test_find_keeps_multiple_group_values
|
||||
combined = Developer.all.merge!(:group => 'developers.name, developers.salary, developers.id, developers.created_at, developers.updated_at').to_a
|
||||
assert_equal combined, Developer.all.merge!(:group => ['developers.name', 'developers.salary', 'developers.id', 'developers.created_at', 'developers.updated_at']).to_a
|
||||
combined = Developer.all.merge!(:group => 'developers.name, developers.salary, developers.id, developers.created_at, developers.updated_at, developers.created_on, developers.updated_on').to_a
|
||||
assert_equal combined, Developer.all.merge!(:group => ['developers.name', 'developers.salary', 'developers.id', 'developers.created_at', 'developers.updated_at', 'developers.created_on', 'developers.updated_on']).to_a
|
||||
end
|
||||
|
||||
def test_find_symbol_ordered_last
|
||||
|
|
Loading…
Reference in a new issue