aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use the right type_mapRafael Mendonça França2013-12-051-4/+2
|
* Typo fixes [ci skip]Akshay Vishnoi2013-11-301-1/+1
|
* cast json values on write to be consistent with reading from the db.Severin Schoepke2013-10-251-0/+4
| | | | See also commit 5ac2341fab689344991b2a4817bd2bc8b3edac9d
* `ActiveRecord::Store` works together with PG `hstore` columns.Yves Senn2013-10-251-0/+8
| | | | | | This is necessary because as of 5ac2341 `hstore` columns are always stored as `Hash` with `String` keys. `ActiveRecord::Store` expected the attribute to be an instance of `HashWithIndifferentAccess`, which led to the bug.
* PG adapter deals with negative money values formatted with parenthesis.Yves Senn2013-08-261-0/+5
| | | | Closes #11899.
* cast hstore values on write to be consistent with reading from the db.Yves Senn2013-08-081-4/+4
|
* Add OID::Bit for supporting bit string.kennyj2013-04-161-2/+12
|
* fix for the bytea/binary nil value bugMatt Aimonetti2013-04-141-0/+1
|
* Make Postgres point type correspond to ruby array with two floats insideMartin Schürrer2013-03-251-0/+11
|
* Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::TimeTroy Kruthoff2013-03-011-4/+1
| | | | | | | | | | In an AR model a timestamptz attribute would return a ruby string and AR tests did not check for any type casting. Previous tests would pass only because an assert_equal was being used on a Time.utc object, which will parse the right side of the eq to a valid Time instance for comparision. switch to test instance of Time instead of ActiveSupport::TimeWithZone
* Fix typoRafael Mendonça França2013-01-311-2/+2
|
* reloading type map on extension changingAaron Patterson2013-01-291-0/+4
|
* Add postgresql range types supportbUg2013-01-231-11/+65
|
* Support for PostgreSQL's ltree data type.Rob Worley2013-01-041-0/+1
|
* Reuse the Column integer converterRafael Mendonça França2013-01-031-1/+1
|
* AR supporting new intrange data type on PostgreSQL >= 9.2Alexey2012-12-161-0/+11
|
* Moves column dump specific code to a module included in AbstractAdapterDan McClain2012-09-141-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having column related schema dumper code in the AbstractAdapter. The code remains the same, but by placing it in the AbstractAdapter, we can then overwrite it with Adapter specific methods that will help with Adapter specific data types. The goal of moving this code here is to create a new migration key for PostgreSQL's array type. Since any datatype can be an array, the goal is to have ':array => true' as a migration option, turning the datatype into an array. I've implemented this in postgres_ext, the syntax is shown here: https://github.com/dockyard/postgres_ext#arrays Adds array migration support Adds array_test.rb outlining the test cases for array data type Adds pg_array_parser to Gemfile for testing Adds pg_array_parser to postgresql_adapter (unused in this commit) Adds schema dump support for arrays Adds postgres array type casting support Updates changelog, adds note for inet and cidr support, which I forgot to add before Removing debugger, Adds pg_array_parser to JRuby platform Removes pg_array_parser requirement, creates ArrayParser module used by PostgreSQLAdapter
* ActiveRecord support to PostgreSQL 9.2 JSON typeDickson S. Guedes2012-09-051-0/+9
| | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
* Add uuid type support to PostgreSQL adapterKonstantin Shabanov2012-06-141-0/+1
|
* Converts inet and cidr columns to NetAddr::CIDRDan Seaver2012-05-071-3/+12
|
* PG column consults oid types when typecastingAaron Patterson2012-02-101-2/+3
|
* dynamically populate casting objects via the pg_type tableAaron Patterson2012-02-101-35/+57
|
* Merge branch 'joelhoffman-postgres_schema_builder' into instance_readerAaron Patterson2012-02-101-1/+1
| | | | | | | | | | | | | | * joelhoffman-postgres_schema_builder: Also support writing the hstore back to the database Hstore values are all strings string_to_hstore / hstore_to_string, serializing don't test schema where hstore not installed schema dumper tests for hstore Additional hstore tests, supporting null values, better compliance with postgres docs add hstore to postgres native types and defaults Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
* removing dead codeAaron Patterson2012-02-091-7/+0
|
* use the pg column to cast valuesAaron Patterson2012-02-081-1/+1
|
* only unescape bytea after it has been read from the databaseAaron Patterson2012-02-071-0/+4
|
* give each PG type a `type` method and decortate tz attributesAaron Patterson2012-02-071-12/+20
|
* hstores can be typecastAaron Patterson2012-02-071-0/+10
|
* taking column width in to account when fetching decimal fieldsAaron Patterson2012-02-071-1/+40
|
* return early from typecasting if the value is nilAaron Patterson2012-02-071-1/+15
|
* mapping more oidsAaron Patterson2012-02-071-1/+7
|
* many of the OIDs mapped and implementedAaron Patterson2012-02-071-0/+146