1. 04 9月, 2014 3 次提交
    • 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
    • G
      Enums shouldn't ruin people's anniversaries · 94b7328b
      Godfrey Chan 提交于
      Added a few more methods on Module/Class to the dangerous class methods
      blacklist. (Technically, allocate and new are already protected currently because
      we happen to redefine them in the current implantation.)
      
      Closes #16792
      94b7328b
    • Y
      schema loading rake tasks maintain database connection for current env. · ded17a49
      Yves Senn 提交于
      [Joshua Cody & Yves Senn]
      
      Closes #16757.
      
      Prior to this patch schema loading rake tasks had the potential to leak a
      connection to a different database. This had side-effects when rake tasks
      operating on the current connection (like `db:seed`) were chained.
      ded17a49
  2. 03 9月, 2014 2 次提交
  3. 02 9月, 2014 2 次提交
  4. 01 9月, 2014 2 次提交
  5. 31 8月, 2014 1 次提交
    • J
      MySQL: set connection collation along with the charset · d5ad2037
      Jeremy Kemper 提交于
      Sets the connection collation to the database collation configured
      in database.yml. Otherwise, `SET NAMES utf8mb4` will use the default
      collation for that charset (utf8mb4_general_ci) when you may have chosen
      a different collation, like utf8mb4_unicode_ci.
      
      This only applies to literal string comparisons, not column values, so
      it is unlikely to affect you.
      d5ad2037
  6. 30 8月, 2014 1 次提交
  7. 29 8月, 2014 9 次提交
  8. 28 8月, 2014 6 次提交
  9. 27 8月, 2014 1 次提交
  10. 26 8月, 2014 2 次提交
    • G
      Override #find_by! in core to enable AST caching · 37939e28
      Godfrey Chan 提交于
      37939e28
    • G
      Fixed find_by("sql fragment without bindings") on master · 58c5261e
      Godfrey Chan 提交于
      * Also duplicated find_by tests from relations_test.rb to finder_test.rb now
      	that we have a completely different implementation on the class (in core.rb
      	with AST caching stuff).
      
      * Also removed a (failing) test that used mocks. Now that we have tests for the
        behavior, there's no point having another test that tests the implementation
      	(that it delegates). Further, what the test was implying is nolonger true with
      	the current implementation, because Class.find_by is a real method now.
      58c5261e
  11. 25 8月, 2014 1 次提交
  12. 24 8月, 2014 1 次提交
  13. 22 8月, 2014 1 次提交
  14. 21 8月, 2014 1 次提交
  15. 20 8月, 2014 3 次提交
  16. 19 8月, 2014 3 次提交
  17. 17 8月, 2014 1 次提交