1. 07 5月, 2017 1 次提交
  2. 04 5月, 2017 1 次提交
  3. 28 2月, 2017 1 次提交
  4. 14 2月, 2017 1 次提交
    • J
      Simplify and optimize Postgres query for primary_keys() · b8e3af79
      Jordan Lewis 提交于
      primary_keys(table) needs to query various metadata tables in Postgres
      to determine the primary key for the table. Previously, it did so using
      a complex common table expression against pg_constraint and
      pg_attribute.
      
      This patch simplifies the query by using information_schema tables.
      This simplifies the logic, making the query far easier to understand,
      and additionally avoids an expensive unnest, window function query, and
      common table expression.
      b8e3af79
  5. 25 12月, 2016 1 次提交
  6. 18 8月, 2016 1 次提交
  7. 07 8月, 2016 3 次提交
  8. 25 4月, 2016 1 次提交
  9. 02 3月, 2016 1 次提交
  10. 29 2月, 2016 1 次提交
  11. 01 2月, 2016 2 次提交
  12. 15 1月, 2016 1 次提交
  13. 14 1月, 2016 1 次提交
  14. 21 9月, 2015 1 次提交
  15. 11 6月, 2015 1 次提交
  16. 25 3月, 2015 1 次提交
  17. 18 2月, 2015 1 次提交
  18. 03 2月, 2015 1 次提交
  19. 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
  20. 31 12月, 2014 1 次提交
  21. 18 11月, 2014 2 次提交
  22. 25 8月, 2014 1 次提交
  23. 24 8月, 2014 1 次提交
  24. 30 5月, 2014 2 次提交
  25. 08 5月, 2014 1 次提交
  26. 11 4月, 2014 2 次提交
  27. 21 3月, 2014 1 次提交
  28. 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
  29. 13 2月, 2014 1 次提交
  30. 29 12月, 2013 1 次提交
  31. 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
  32. 19 12月, 2013 1 次提交
  33. 15 8月, 2013 1 次提交
  34. 03 7月, 2013 1 次提交