1. 10 6月, 2018 3 次提交
  2. 09 6月, 2018 10 次提交
  3. 08 6月, 2018 8 次提交
  4. 07 6月, 2018 7 次提交
    • B
      Add missing `require` · ee6bbe40
      bogdanvlviv 提交于
      `activesupport/test/logger_test.rb` requires `tmpdir`.
      
      `activesupport/test/multibyte_test_helpers.rb` requires
      `filutils`, `open-uri`, and `tmpdir`.
      ee6bbe40
    • B
      Remove unused `require` · 887c55c5
      bogdanvlviv 提交于
      - `activesupport/multibyte_normalization_conformance_test.rb`
        `fileutils`, `tmpdir`, and `open-uri` are unused since
        c245ca30,
        c245ca30, and
        7d7c2d13 in accordance.
      
      - `activesupport/test/multibyte_conformance_test.rb`
        `tmpdir`, and `open-uri` are unused since
        c245ca30, and
        7d7c2d13 in accordance.
        Remove using of `fileutils` since
        c245ca30.
      
      - `activesupport/test/multibyte_grapheme_break_conformance_test.rb`
        `fileutils`, `tmpdir`, and `open-uri` are unused since
        c245ca30,
        c245ca30, and
        7d7c2d13 in accordance.
      887c55c5
    • G
      35730055
    • R
      Fix GROUP BY queries to apply LIMIT/OFFSET after aggregations · 63e35a13
      Ryuta Kamizono 提交于
      If `eager_loading` is true, `apply_join_dependency` force applies
      LIMIT/OFFSET before JOINs by `limited_ids_for` to keep parent records
      count. But for aggregation queries, LIMIT/OFFSET should be applied after
      aggregations the same as SQL semantics.
      
      And also, we could not replace SELECT list by `limited_ids_for` when a
      query has a GROUP BY clause. It had never been worked since it will
      causes generating invalid SQL for MySQL, PostgreSQL, and probably most
      backends.
      
      ```
      % ARCONN=postgresql be ruby -w -Itest test/cases/calculations_test.rb -n test_group_by_with_limit
      Using postgresql
      Run options: -n test_group_by_with_limit --seed 20925
      
      # Running:
      
      E
      
      Error:
      CalculationsTest#test_group_by_with_limit:
      ActiveRecord::StatementInvalid: PG::GroupingError: ERROR:  column "posts.id" must appear in the GROUP BY clause or be used in an aggregate function
      LINE 1: SELECT  DISTINCT "posts"."id", "posts"."type" AS alias_0 FRO...                         ^
      : SELECT  DISTINCT "posts"."id", "posts"."type" AS alias_0 FROM "posts" LEFT OUTER JOIN "comments" ON "comments"."post_id" = "posts"."id" GROUP BY "posts"."type" ORDER BY "posts"."type" ASC LIMIT $1
      ```
      
      Fixes #8103.
      Closes #27249.
      63e35a13
    • R
      Fix `collection.create` to could be rolled back by `after_save` · 5dc72378
      Ryuta Kamizono 提交于
      In `_create_record`, explicit `transaction` block requires rollback
      handling manually when `insert_record` is failed.
      
      We need to handle it in `_create_record`, not in `insert_record`, since
      our test cases expect a record added to target and returned even if
      `insert_record` is failed,
      
      Closes #31488.
      5dc72378
    • R
      Reuse existing model for testing duplicated children records · 48c95cf7
      Ryuta Kamizono 提交于
      Follow up of #32952.
      48c95cf7
    • R
      Merge pull request #33067 from kamipo/fix_force_equality · 86e42b53
      Rafael França 提交于
      Fix force equality checking not to break the serialized attribute with Array
      86e42b53
  5. 06 6月, 2018 5 次提交
  6. 05 6月, 2018 4 次提交
  7. 04 6月, 2018 3 次提交