aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/column.rb
Commit message (Collapse)AuthorAgeFilesLines
* Delegate `Column#type` to the injected type objectSean Griffin2014-05-191-5/+0
| | | | | | | | | | | | | | | | 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.
* Add a type object to Column constructorSean Griffin2014-05-171-2/+2
| | | | | | 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`.
* :scissors:Rafael Mendonça França2014-05-141-1/+0
|
* introduce AR::ConnectionAdapters::PostgreSQL for sharing modules (with AR-JDBC)kares2014-05-141-2/+5
| | | ... 'shared' OID, ArrayParser and Cast helpers, also re-arranged Column's dependencies
* [postgres] include PgArrayParser directly and only load/include ArrayParser ↵kares2014-05-131-2/+14
| | | | if not found
* copy edits [ci skip]Vijay Dev2014-05-081-1/+1
|
* [ci skip] document type_cast_for_writeschneems2014-05-071-0/+3
|
* PostgreSQL determine `Column#type` through corresponding OID. #7814Yves Senn2014-04-011-64/+1
| | | | | | | | | | | | | 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.
* refactor, put `PostgreSQLColumn` into `column.rb`.Yves Senn2014-03-311-0/+221
We have `connection_adapters/column.rb` so it's easier to remember that the column in in a separate file.