1. 24 5月, 2014 1 次提交
  2. 23 5月, 2014 3 次提交
  3. 20 5月, 2014 1 次提交
    • S
      Remove :timestamp column type · d0f8c46e
      Sean Griffin 提交于
      The `:timestamp` type for columns is unused. All database adapters treat
      them as the same database type. All code in `ActiveRecord` which changes
      its behavior based on the column's type acts the same in both cases.
      However, when the type is passed to code that checks for the `:datetime`
      type, but not `:timestamp` (such as XML serialization), the result is
      unexpected behavior.
      
      Existing schema definitions will continue to work, and the `timestamp`
      type is transparently aliased to `datetime`.
      d0f8c46e
  4. 19 5月, 2014 1 次提交
    • S
      Delegate `Column#type` to the injected type object · 0b682e4b
      Sean Griffin 提交于
      The decision to wrap type registrations in a proc was made for two
      reasons.
      
      1. Some cases need to make an additional decision based on the type
        (e.g. a `Decimal` with a 0 scale)
      2. Aliased types are automatically updated if they type they point to is
        updated later. If a user or another adapter decides to change the
        object used for `decimal` columns, `numeric`, and `number` will
        automatically point to the new type, without having to track what
        types are aliased explicitly.
      
      Everything else here should be pretty straightforward. PostgreSQL ranges
      had to change slightly, since the `simplified_type` method is gone.
      0b682e4b
  5. 18 5月, 2014 1 次提交
    • S
      Add a type object to Column constructor · 4bd5dffc
      Sean Griffin 提交于
      Part of #15134. In order to perform typecasting polymorphically, we need
      to add another argument to the constructor. The order was chosen to
      match the `oid_type` on `PostgreSQLColumn`.
      4bd5dffc
  6. 04 5月, 2014 4 次提交
  7. 10 4月, 2014 3 次提交
  8. 08 4月, 2014 1 次提交
  9. 27 3月, 2014 2 次提交
  10. 26 3月, 2014 1 次提交
  11. 18 3月, 2014 1 次提交
    • M
      Reap connections based on owning-thread death · 9e457a86
      Matthew Draper 提交于
      .. not a general timeout.
      
      Now, if a thread checks out a connection then dies, we can immediately
      recover that connection and re-use it.
      
      This should alleviate the pool exhaustion discussed in #12867. More
      importantly, it entirely avoids the potential issues of the reaper
      attempting to check whether connections are still active: as long as the
      owning thread is alive, the connection is its business alone.
      
      As a no-op reap is now trivial (only entails checking a thread status
      per connection), we can also perform one in-line any time we decide to
      sleep for a connection.
      9e457a86
  12. 19 2月, 2014 1 次提交
  13. 09 2月, 2014 1 次提交
  14. 18 1月, 2014 2 次提交
  15. 15 1月, 2014 2 次提交
  16. 14 1月, 2014 1 次提交
  17. 26 11月, 2013 1 次提交
  18. 12 11月, 2013 1 次提交
  19. 11 11月, 2013 1 次提交
  20. 07 11月, 2013 1 次提交
  21. 05 10月, 2013 1 次提交
  22. 30 9月, 2013 2 次提交
  23. 12 9月, 2013 3 次提交
  24. 02 8月, 2013 1 次提交
    • A
      Define enable_extension method to prevent undefined method error · fb9806e5
      Antonio Santos 提交于
      When mixing postgresql and another adapter like sqlite3 (for dev and test
      respectively), the task `db:test:prepare` will fail due to the `enable_extension`
      method not being defined in the abstract adapter. This patch simply adds an
      empty definition to prevent it.
      fb9806e5
  25. 16 7月, 2013 1 次提交
  26. 04 7月, 2013 2 次提交