1. 26 5月, 2014 1 次提交
  2. 23 5月, 2014 4 次提交
  3. 22 5月, 2014 1 次提交
    • S
      Move extract_scale to decimal type · e45e4f44
      Sean Griffin 提交于
      The only type that has a scale is decimal. There's a special case where
      decimal columns with 0 scale are type cast to integers if the scale is
      not specified. Appears to only affect schema dumping.
      e45e4f44
  4. 21 5月, 2014 4 次提交
  5. 20 5月, 2014 1 次提交
  6. 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
  7. 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