1. 03 4月, 2014 2 次提交
  2. 02 4月, 2014 4 次提交
  3. 01 4月, 2014 1 次提交
    • Y
      PostgreSQL determine `Column#type` through corresponding OID. #7814 · 4d344bb4
      Yves Senn 提交于
      I ran the whole test suite and compared the old to the new types.
      Following is the list of types that did change with this patch:
      
      ```
      DIFFERENT TYPE FOR mood: NEW: enum, BEFORE:
      DIFFERENT TYPE FOR floatrange: NEW: floatrange, BEFORE: float
      ```
      
      The `floatrange` is a custom type. The old type `float` was simply a coincidence
      form the name `floatrange` and our type-guessing.
      4d344bb4
  4. 31 3月, 2014 1 次提交
  5. 29 3月, 2014 1 次提交
  6. 28 3月, 2014 3 次提交
  7. 27 3月, 2014 1 次提交
  8. 21 3月, 2014 1 次提交
  9. 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
  10. 18 3月, 2014 1 次提交
  11. 15 3月, 2014 1 次提交
  12. 11 3月, 2014 2 次提交
  13. 04 3月, 2014 3 次提交
  14. 03 3月, 2014 1 次提交
    • V
      Fix warnings due to: · 398b4de0
      Vipul A M 提交于
      - unused variable in PG Adapter.
      - Ambiguous argument warning from range_test for use - to + Infinity range without brackets.
      398b4de0
  15. 26 2月, 2014 3 次提交
  16. 23 2月, 2014 2 次提交
    • Y
      deprecate support for pg ranges with excluding beginnings. · 91949e48
      Yves Senn 提交于
      The Ruby Range object does not support excluding beginnings.
      We currently support excluding beginnings for some subtypes using
      manually by incrementing them (now using the `#succ` method).
      This is approach is flawed as it's not equal to an excluding beginning.
      
      This commit deprecates the current support for excluding beginnings.
      It also raises an `ArgumentError` for subtypes that do not implement the `succ`
      method.
      
      This is a temporary solution to get rid of the broken state. We might still
      add complete support for excluding beginnings afterwards. (Probably with a
      new `PGRange` object, which acts like a `Range` but has excluding beginnings.
      91949e48
    • Y
      dynamically define PostgreSQL OID range types. · 4cb47167
      Yves Senn 提交于
      This gets AR working with custom defined range types. It also
      removes the need for subtype specific branches in `OID::Range`.
      
      This expands the interface of all `OID` types with the `infinity` method.
      It's responsible to provide a value for positive and negative infinity.
      4cb47167
  17. 19 2月, 2014 1 次提交
  18. 17 2月, 2014 1 次提交
    • J
      Resolve encoding issues with arrays of hstore (bug 11135). · da3fec2e
      Josh Goodall 提交于
      We didn't have enough encoding for the wire protocol to store an array
      of hstore types. So, further encode any hstore that is an array member.
      Whilst we're here, ensure it's an HashWithIndifferentAccess being
      returned, to be consistent with other serialized forms, and add testing
      for arrays of hstore.
      
      So now the following migration:
      
        enable_extension "hstore"
        create_table :servers do |t|
          t.string  :name
          t.hstore  :interfaces, array: true
        end
      
      produces a model that can used like this, to store an array of hashes:
      
        server = Server.create(name: "server01", interfaces: [
          { name: "bge0", ipv4: "192.0.2.2", state: "up" },
          { name: "de0", state: "disabled", by: "misha" },
          { name: "fe0", state: "up" },
        ])
      
      More at http://inopinatus.org/2013/07/12/using-arrays-of-hstore-with-rails-4/
      da3fec2e
  19. 13 2月, 2014 2 次提交
  20. 11 2月, 2014 1 次提交
  21. 08 2月, 2014 1 次提交
  22. 01 2月, 2014 1 次提交
  23. 18 1月, 2014 1 次提交
  24. 17 1月, 2014 1 次提交
  25. 16 1月, 2014 1 次提交
  26. 07 1月, 2014 1 次提交
    • N
      Make change_table use object of current database adapter · eb589fed
      Nishant Modak 提交于
        - Earlier, change_table was creating database-agnostic object.
        - After this change, it will create correct object based on current
          database adapter.
        - This will ensure that create_table and change_table will get same objects.
        - This makes update_table_definition method public and nodoc.
        - Fixes #13577 and #13503
      eb589fed
  27. 29 12月, 2013 1 次提交