1. 27 6月, 2014 6 次提交
  2. 30 5月, 2014 4 次提交
  3. 29 5月, 2014 1 次提交
  4. 27 5月, 2014 1 次提交
  5. 24 5月, 2014 1 次提交
  6. 23 5月, 2014 1 次提交
    • S
      Allow additional arguments to be used during type map lookups · ecf4ad7c
      Sean Griffin 提交于
      Determining things like precision and scale in postgresql will require
      the given blocks to take additional arguments besides the OID.
      
      - Adds the ability to handle additional arguments to `TypeMap`
      - Passes the column type to blocks when looking up PG types
      ecf4ad7c
  7. 19 5月, 2014 1 次提交
  8. 15 5月, 2014 1 次提交
  9. 14 5月, 2014 2 次提交
  10. 12 5月, 2014 2 次提交
    • Y
      096be96d
    • P
      Handle other pk types in PostgreSQL gracefully. · c0a12453
      Patrick Robertson 提交于
      In #10410 it was noted that you can no longer create PK's with the
      type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly
      because the newer adapter is checking for column type with the
      id column instead of just letting it pass through like it did
      before.
      
      Side effects:
      You may just create a PK column of a type that you really don't
      want to be your PK. As far as I can tell this was allowed in 3.2.X
      and perhaps an exception should be raised if you try and do
      something extremely dumb.
      c0a12453
  11. 04 5月, 2014 1 次提交
  12. 16 4月, 2014 1 次提交
  13. 11 4月, 2014 1 次提交
  14. 02 4月, 2014 1 次提交
  15. 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
  16. 17 1月, 2014 1 次提交
  17. 05 12月, 2013 1 次提交
  18. 15 8月, 2013 1 次提交
  19. 16 7月, 2013 1 次提交
  20. 26 6月, 2013 1 次提交
  21. 10 5月, 2013 2 次提交
    • B
      Reject blank order_values within #columns_for_distinct, as the orders aren't... · ec75ff34
      Ben Woosley 提交于
      Reject blank order_values within #columns_for_distinct, as the orders aren't used at all on non-postgres adapters.
      ec75ff34
    • 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
  22. 04 5月, 2013 1 次提交
  23. 31 3月, 2013 1 次提交
    • C
      Do not calculate values if they are not going to be used · 7860bf11
      Carlos Antonio da Silva 提交于
      When building the indexes list in PostgreSQL, IndexDefinition objects
      are only created if the query for the related attributes really returns
      something matching the attributes.
      
      In case it does not, the variables for building the definition objects were
      being created but not used.
      7860bf11
  24. 28 3月, 2013 1 次提交
  25. 26 3月, 2013 1 次提交
  26. 24 3月, 2013 1 次提交
  27. 23 3月, 2013 3 次提交