1. 04 9月, 2014 1 次提交
    • S
      Skip StatementCache for eager loaded associations (Fixes #16761) · 4abbdbdf
      Sammy Larbi 提交于
      Eagerly loaded collection and singular associations are ignored by the StatementCache, which causes errors when the queries they generate reference columns that were not eagerly loaded.
      
      This commit skips the creation of the StatementCache as a fix for these scenarios.
      4abbdbdf
  2. 28 8月, 2014 1 次提交
  3. 20 8月, 2014 1 次提交
  4. 19 8月, 2014 1 次提交
  5. 14 7月, 2014 1 次提交
  6. 26 6月, 2014 2 次提交
  7. 20 6月, 2014 1 次提交
  8. 18 6月, 2014 1 次提交
  9. 11 6月, 2014 1 次提交
  10. 04 6月, 2014 1 次提交
  11. 21 5月, 2014 3 次提交
  12. 19 5月, 2014 1 次提交
  13. 15 5月, 2014 1 次提交
    • N
      Make filter_binds filter out symbols that are equal to strings · 1d316ac1
      Nat Budin 提交于
      ActiveRecord::Relation::Merger's filter_binds method does not filter out bind
      variables when one of the attribute nodes has a string name, but the other has
      a symbol name, even when those names are actually equal.
      
      This can result in there being more bind variables than placeholders in the
      generated SQL.  This is particularly an issue for PostgreSQL, where this is
      treated as an error.
      
      This patch changes the filter_binds method to make it convert both attribute
      names to strings before comparing.
      1d316ac1
  14. 13 5月, 2014 1 次提交
  15. 10 5月, 2014 2 次提交
  16. 08 5月, 2014 1 次提交
    • F
      Fixed HABTM's CollectionAssociation size · f045663d
      Fred Wu 提交于
      HABTM should fall back to using the normal CollectionAssociation's size calculation if the collection is not cached or loaded.
      
      This addresses both #14913 and #14914 for master.
      f045663d
  17. 06 5月, 2014 1 次提交
  18. 05 5月, 2014 2 次提交
  19. 01 5月, 2014 1 次提交
  20. 24 4月, 2014 1 次提交
    • J
      Fixes Issue #13466. · 9c3afdc3
      Jefferson Lai 提交于
      Changed the call to a scope block to be evaluated with instance_eval.
      The result is that ScopeRegistry can use the actual class instead of base_class when
      caching scopes so queries made by classes with a common ancestor won't leak scopes.
      9c3afdc3
  21. 15 4月, 2014 1 次提交
  22. 12 4月, 2014 1 次提交
  23. 10 4月, 2014 1 次提交
  24. 05 4月, 2014 1 次提交
  25. 03 4月, 2014 3 次提交
  26. 28 3月, 2014 1 次提交
  27. 15 3月, 2014 1 次提交
  28. 23 2月, 2014 1 次提交
  29. 22 2月, 2014 1 次提交
  30. 21 2月, 2014 1 次提交
  31. 09 2月, 2014 2 次提交
  32. 05 2月, 2014 1 次提交