1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/associations
Yves Senn b06f6a1d8c Revert "Merge pull request #22486 from methyl/fix-includes-for-groupped-association"
This reverts commit 537ac7d6ad, reversing
changes made to 9c9c54abe0.

Reason:
The way we preload associations will change the meaning of GROUP BY
operations. This is illustrated in the SQL generated by the added
test (failing on PG):

Association Load:
D, [2015-12-21T12:26:07.169920 #26969] DEBUG -- :   Post Load (0.7ms)  SELECT "posts".* FROM "posts" LEFT JOIN comments ON comments.post_id = posts.id WHERE "posts"."author_id" = $1 GROUP BY posts.id ORDER BY SUM(comments.tags_count)  [["author_id", 1]]

Preload:
D, [2015-12-21T12:26:07.128305 #26969] DEBUG -- :   Post Load (1.3ms)  SELECT "posts".* FROM "posts" LEFT JOIN comments ON comments.post_id = posts.id WHERE "posts"."author_id" IN (1, 2, 3) GROUP BY posts.id ORDER BY SUM(comments.tags_count)
2015-12-21 12:31:52 +01:00
..
association_scope_test.rb
belongs_to_associations_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
bidirectional_destroy_dependencies_test.rb
callbacks_test.rb Revert ":cut: remove unnecessary rescue Exceptions" 2015-03-06 12:16:18 +01:00
cascaded_eager_loading_test.rb
eager_load_includes_full_sti_class_test.rb
eager_load_nested_include_test.rb
eager_singularization_test.rb
eager_test.rb Revert "Merge pull request #22486 from methyl/fix-includes-for-groupped-association" 2015-12-21 12:31:52 +01:00
extension_test.rb
has_and_belongs_to_many_associations_test.rb Ensure has_and_belongs_to_many works with belongs_to_required_by_default 2015-10-29 16:53:49 -06:00
has_many_associations_test.rb Bugfix collection association #create method … 2015-11-23 16:22:03 +02:00
has_many_through_associations_test.rb Fix merge conflicts from #19501 2015-10-29 09:22:45 -06:00
has_one_associations_test.rb Merge pull request #21581 from ronakjangir47/restrict_with_error 2015-09-17 16:30:10 +02:00
has_one_through_associations_test.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
inner_join_association_test.rb
inverse_associations_test.rb Tweaked wording used in some tests. 2015-10-25 08:57:50 +00:00
join_model_test.rb Silence deprecation warning from force reload 2015-07-16 16:06:26 -04:00
left_outer_join_association_test.rb Merge pull request #22125 from k0kubun/left_joins 2015-10-30 14:05:11 -06:00
nested_through_associations_test.rb Fix misleading errors for has_one through relations 2015-07-22 00:51:23 +03:00
required_test.rb Closes rails/rails#18864: Renaming transactional fixtures to transactional tests 2015-03-16 11:35:44 -07:00