1. 09 5月, 2014 1 次提交
  2. 08 5月, 2014 1 次提交
  3. 04 5月, 2014 1 次提交
  4. 25 4月, 2014 1 次提交
  5. 18 4月, 2014 1 次提交
  6. 16 4月, 2014 1 次提交
  7. 11 4月, 2014 1 次提交
  8. 07 4月, 2014 1 次提交
    • M
      Use connection-specific bytea escaping · c4bdca19
      Matthew Draper 提交于
      In our normal usage, it's rare for this to make a difference... but is
      more technically correct.
      
      As well as a spec that proves this is a good idea, let's also add a more
      sane-looking one that just covers basic to_sql functionality. There
      aren't many places where we actually use escape_bytea, but that's one
      that won't be going away.
      c4bdca19
  9. 03 4月, 2014 1 次提交
  10. 02 4月, 2014 1 次提交
  11. 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
  12. 31 3月, 2014 1 次提交
  13. 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
  14. 11 3月, 2014 1 次提交
  15. 04 3月, 2014 1 次提交
  16. 23 2月, 2014 3 次提交
    • Y
      Coerce strings when reading attributes. · d9314b4c
      Yves Senn 提交于
      d9314b4c
    • 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. 01 2月, 2014 1 次提交
  20. 31 1月, 2014 1 次提交
    • A
      Fix regression on `.select_*` methods. · b7fcad8f
      Arthur Neves 提交于
      This was a common pattern:
      ```
      query = author.posts.select(:title)
      connection.select_one(query)
      ```
      
      However `.select` returns a ActiveRecord::AssociationRelation, which has
      the bind information, so we can use that to get the right sql query.
      
      Also fix select_rows on postgress and sqlite3 that were not using the binds
      
      [fixes #7538]
      [fixes #12017]
      [related #13731]
      [related #12056]
      b7fcad8f
  21. 17 1月, 2014 1 次提交
  22. 23 12月, 2013 1 次提交
  23. 06 12月, 2013 1 次提交
  24. 05 12月, 2013 1 次提交
  25. 30 11月, 2013 1 次提交
  26. 17 11月, 2013 1 次提交
  27. 10 11月, 2013 3 次提交
  28. 25 10月, 2013 2 次提交
  29. 05 10月, 2013 1 次提交
  30. 30 9月, 2013 2 次提交
  31. 28 9月, 2013 1 次提交
  32. 12 9月, 2013 1 次提交
    • R
      Check if the SQL is not a prepared statement · f13b2785
      Rafael Mendonça França 提交于
      When the adapter is with prepared statement disabled and the binds array
      is not empty the connection adapter will try to set the binds values and
      will fail. Now we are checking if the adapter has the prepared statement
      disabled.
      
      Fixes #12023
      f13b2785
  33. 27 8月, 2013 1 次提交
  34. 26 8月, 2013 1 次提交