aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix loading of fixtures when the column type is a postgres array of strings.Chris Constantine2013-04-181-1/+1
| | | | - A string in an array of strings that has a quote char (') needs to have that quote char escaped if the array is getting wrapped in quote chars.
* Fix typoRafael Mendonça França2013-03-251-1/+1
|
* The sql_type method called here is fromRafael Mendonça França2013-03-251-6/+5
| | | | | | | ActiveRecord::ConnectionAdapters::Column See https://github.com/rails/rails/blob/28b8ca766e3e7c6c43d3ae900c99f8377153c62/activerecord/lib/active_record/connection_adapters/column.rb#L16
* Move away from column.sql_type in untested code tooMartin Schürrer2013-03-251-5/+6
|
* Make Postgres point type correspond to ruby array with two floats insideMartin Schürrer2013-03-251-5/+13
|
* stop depending on sql_type in pgAaron Patterson2013-03-221-6/+8
|
* Cast number to string in PostgresŁukasz Strzałkowski2013-03-121-3/+6
| | | | fixes #9170
* Fix cases where delete_records on a has_many association caused errorsDerek Kraan2013-01-271-0/+4
| | | | | | | | | | | | | because of an ambiguous column name. This happened if the association model had a default scope that referenced a third table, and the third table also referenced the original table (with an identical foreign_key). Mysql requires that ambiguous columns are deambiguated by using the full table.column syntax. Postgresql and Sqlite use a different syntax for updates altogether (and don't tolerate table.name syntax), so the fix requires always including the full table.column and discarding it later for Sqlite and Postgresql.
* Add postgresql range types supportbUg2013-01-231-10/+9
|
* AR supporting new intrange data type on PostgreSQL >= 9.2Alexey2012-12-161-0/+10
|
* Fix postgresql adapter to handle bc timestamps correctlyBogdan Gusiev2012-11-211-3/+7
|
* Fix typo in inet and cidr savingMiguel Herranz2012-10-141-1/+1
|
* Moves column dump specific code to a module included in AbstractAdapterDan McClain2012-09-141-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* indent fix [ci skip]Vijay Dev2012-09-091-1/+1
|
* ActiveRecord support to PostgreSQL 9.2 JSON typeDickson S. Guedes2012-09-051-2/+6
| | | | | | | | | 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
* Modularize postgresql adapterKonstantin Shabanov2012-09-051-0/+120