1. 25 4月, 2016 1 次提交
  2. 02 3月, 2016 1 次提交
  3. 29 2月, 2016 1 次提交
  4. 01 2月, 2016 2 次提交
  5. 15 1月, 2016 1 次提交
  6. 14 1月, 2016 1 次提交
  7. 21 9月, 2015 1 次提交
  8. 11 6月, 2015 1 次提交
  9. 25 3月, 2015 1 次提交
  10. 18 2月, 2015 1 次提交
  11. 03 2月, 2015 1 次提交
  12. 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
  13. 31 12月, 2014 1 次提交
  14. 18 11月, 2014 2 次提交
  15. 25 8月, 2014 1 次提交
  16. 24 8月, 2014 1 次提交
  17. 30 5月, 2014 2 次提交
  18. 08 5月, 2014 1 次提交
  19. 11 4月, 2014 2 次提交
  20. 21 3月, 2014 1 次提交
  21. 20 3月, 2014 1 次提交
    • J
      Postgres schema: Constrain sequence search classid · 0110d7b7
      Josh Williams 提交于
      The pk_an_sequence_for query previously joined against pg_class's oid
      for rows in pg_depend, but pg_depend's objid may point to other system
      tables, such as pg_attrdef.  If a row in one of those other tables
      coincidentally has the same oid as an (unrelated) sequence, that
      sequence name may be returned instead of the real one.
      
      This ensures that only the pg_depend entries pointing to pg_class are
      considered.
      0110d7b7
  22. 13 2月, 2014 1 次提交
  23. 29 12月, 2013 1 次提交
  24. 23 12月, 2013 1 次提交
    • S
      Tell how to Create a Database in Error Message · 0ec45cd1
      schneems 提交于
      Currently if you attempt to use a database that does not exist  you get an error:
      
      ```
      PG::ConnectionBad FATAL:  database "db_error" does not exist
      ```
      
      The solution is easy, create and migrate your database however new developers may not know these commands by memory. Instead of requiring the developer to search for a solution, tell them how to fix the problem in the error message:
      
      ```
      ActiveRecord::NoDatabase: FATAL:  database "db_error" does not exist
      Run `$ bin/rake db:create db:migrate` to create your database
      ```
      
      Active Record should not know about `rake db:migrate` so this additional information needs to come from the railtie. Potential alternative implementation suggestions are welcome.
      0ec45cd1
  25. 19 12月, 2013 1 次提交
  26. 15 8月, 2013 1 次提交
  27. 03 7月, 2013 1 次提交
  28. 13 5月, 2013 1 次提交
  29. 10 5月, 2013 1 次提交
    • B
      Fix that #exists? can produce invalid SQL: "SELECT DISTINCT DISTINCT" · 15d6e4dc
      Ben Woosley 提交于
      The combination of a :uniq => true association and the #distinct call
      in #construct_limited_ids_condition combine to create invalid SQL, because
      we're explicitly selecting DISTINCT, and also sending #distinct on to AREL,
      via the relation#distinct_value.
      
      Rather than build a select distinct clause in #construct_limited_ids_condition,
      I set #distinct! and pass just the columns into the select statement.
      This requires introducing a #columns_for_distinct method to return the
      select columns but not the statement itself.
      15d6e4dc
  30. 26 3月, 2013 1 次提交
  31. 01 3月, 2013 1 次提交
  32. 16 2月, 2013 1 次提交
    • J
      Revert "checking in the abstractions for valid type checking:" · c65b0763
      Jon Leighton 提交于
      This reverts commit c321b309.
      
      Conflicts:
      	activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
      	activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
      
      Reason: failing test
      
        1) Error:
      test_valid_column(ActiveRecord::ConnectionAdapters::SQLite3AdapterTest):
      NoMethodError: undefined method `column' for
          test/cases/adapters/sqlite3/sqlite3_adapter_test.rb:29:in
      `test_valid_column'
      c65b0763
  33. 12 2月, 2013 1 次提交
  34. 21 11月, 2012 1 次提交
  35. 05 10月, 2012 1 次提交
  36. 08 4月, 2012 1 次提交