1. 20 9月, 2015 1 次提交
  2. 17 3月, 2015 1 次提交
    • B
      Closes rails/rails#18864: Renaming transactional fixtures to transactional tests · 09658635
      Brandon Weiss 提交于
      I’m renaming all instances of `use_transcational_fixtures` to
      `use_transactional_tests` and “transactional fixtures” to
      “transactional tests”.
      
      I’m deprecating `use_transactional_fixtures=`. So anyone who is
      explicitly setting this will get a warning telling them to use
      `use_transactional_tests=` instead.
      
      I’m maintaining backwards compatibility—both forms will work.
      `use_transactional_tests` will check to see if
      `use_transactional_fixtures` is set and use that, otherwise it will use
      itself. But because `use_transactional_tests` is a class attribute
      (created with `class_attribute`) this requires a little bit of hoop
      jumping. The writer method that `class_attribute` generates defines a
      new reader method that return the value being set. Which means we can’t
      set the default of `true` using `use_transactional_tests=` as was done
      previously because that won’t take into account anyone using
      `use_transactional_fixtures`. Instead I defined the reader method
      manually and it checks `use_transactional_fixtures`. If it was set then
      it should be used, otherwise it should return the default, which is
      `true`. If someone uses `use_transactional_tests=` then it will
      overwrite the backwards-compatible method with whatever they set.
      09658635
  3. 28 1月, 2015 1 次提交
    • S
      Remove Relation#bind_params · b06f64c3
      Sean Griffin 提交于
      `bound_attributes` is now used universally across the board, removing
      the need for the conversion layer. These changes are mostly mechanical,
      with the exception of the log subscriber. Additional, we had to
      implement `hash` on the attribute objects, so they could be used as a
      key for query caching.
      b06f64c3
  4. 03 1月, 2015 1 次提交
  5. 28 7月, 2014 1 次提交
  6. 18 5月, 2014 1 次提交
  7. 02 4月, 2014 1 次提交
  8. 27 3月, 2014 1 次提交
  9. 15 3月, 2014 1 次提交
  10. 31 1月, 2014 1 次提交
    • A
      Fix regression on `.select_*` methods. · b7fcad8f
      Arthur Neves 提交于
      This was a common pattern:
      ```
      query = author.posts.select(:title)
      connection.select_one(query)
      ```
      
      However `.select` returns a ActiveRecord::AssociationRelation, which has
      the bind information, so we can use that to get the right sql query.
      
      Also fix select_rows on postgress and sqlite3 that were not using the binds
      
      [fixes #7538]
      [fixes #12017]
      [related #13731]
      [related #12056]
      b7fcad8f
  11. 25 12月, 2013 1 次提交
  12. 24 12月, 2013 1 次提交
  13. 04 12月, 2013 1 次提交
  14. 08 11月, 2013 1 次提交
  15. 23 7月, 2013 1 次提交
  16. 28 3月, 2013 1 次提交
  17. 23 3月, 2013 1 次提交
  18. 11 2月, 2013 1 次提交
  19. 20 1月, 2013 1 次提交
  20. 26 10月, 2012 1 次提交
    • J
      Remove ActiveRecord::Model · 9e4c41c9
      Jon Leighton 提交于
      In the end I think the pain of implementing this seamlessly was not
      worth the gain provided.
      
      The intention was that it would allow plain ruby objects that might not
      live in your main application to be subclassed and have persistence
      mixed in. But I've decided that the benefit of doing that is not worth
      the amount of complexity that the implementation introduced.
      9e4c41c9
  21. 15 9月, 2012 1 次提交
  22. 29 12月, 2011 1 次提交
  23. 14 12月, 2011 1 次提交
    • J
      Revert naive O(1) table_exists? implementation. · 38703ac8
      Jon Leighton 提交于
      It was a bad idea to rescue exceptions here. This can interfere with
      transaction rollbacks which seems to be the cause of current CI
      failure.
      
      Instead, each adapter should implement its own DB-specific O(1)
      implementation, and we fall back on the generic, slower, implementation
      otherwise.
      38703ac8
  24. 30 11月, 2011 1 次提交
  25. 20 11月, 2011 1 次提交
  26. 09 8月, 2011 2 次提交
    • J
      Make it the responsibility of the connection to hold onto an ARel visitor for... · 7db90aa7
      Jon Leighton 提交于
      Make it the responsibility of the connection to hold onto an ARel visitor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
      7db90aa7
    • R
      Fixed test_disable_referential_integrity on Oracle · 58af0d46
      Raimonds Simanovskis 提交于
      On Oracle disable_referential_integrity before execution of block will disable foreign key constraints and after block will enable them but when constraints are enabled then they are validated. Therefore created record with invalid foreign key should be deleted before enabling foreign key constraints.
      58af0d46
  27. 22 7月, 2011 1 次提交
  28. 21 7月, 2011 3 次提交
  29. 01 7月, 2011 1 次提交
  30. 07 6月, 2011 1 次提交
  31. 05 6月, 2011 2 次提交
  32. 04 1月, 2011 1 次提交
  33. 19 6月, 2010 1 次提交
  34. 09 6月, 2010 1 次提交
  35. 05 6月, 2010 1 次提交
  36. 09 4月, 2010 1 次提交