aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql
Commit message (Collapse)AuthorAgeFilesLines
...
* | Typo fixes [ci skip]Akshay Vishnoi2013-11-301-1/+1
| |
* | Drop unused param `should_be_quoted` to `PostgreSQLColumn#array_to_string`Vipul A M2013-11-171-1/+1
| |
* | Change array check for better aesthetics / reading the codeCarlos Antonio da Silva2013-11-091-1/+1
| |
* | Document the bind returnRafael Mendonça França2013-11-091-0/+3
| |
* | Avoid shot circuit return.Rafael Mendonça França2013-11-091-8/+20
| | | | | | | | This will make the conditional and to code clear
* | Merge pull request #10664 from aderyabin/docpatchYves Senn2013-10-291-1/+1
|\ \ | | | | | | Fix doc in Postgres database creation [ci skip]
| * | Fix doc in Postgres database creationAndrey Deryabin2013-06-251-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.
* | | wrap logging around the actual query call itself.Aaron Patterson2013-10-041-25/+21
| | | | | | | | | | | | This is to be consistent with the way the mysql2 adapter times queries
* | | extract adapter savepoint implementations into `abstract/savepoints.rb`.Yves Senn2013-09-301-12/+0
| | |
* | | change the savepoint interface to allow passing the name.Yves Senn2013-09-301-6/+6
| | |
* | | Fixed issue #12327Marc Lennox2013-09-271-2/+2
| | |
* | | Check if the SQL is not a prepared statementRafael Mendonça França2013-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When the adapter is with prepared statement disabled and the binds array is not empty the connection adapter will try to set the binds values and will fail. Now we are checking if the adapter has the prepared statement disabled. Fixes #12023
* | | Perf: fields in pg gem causes an allocation, cache itSam2013-08-271-2/+3
| | |
* | | PG adapter deals with negative money values formatted with parenthesis.Yves Senn2013-08-261-0/+5
| | | | | | | | | | | | Closes #11899.
* | | Use infinity constKonstantin Shabanov2013-08-221-2/+2
| |/ |/|
* | Rescue invalid ip address exceptions on assign.Paul Nikitochkin2013-08-141-1/+5
| | | | | | | | In order that set attribute should not be bang method
* | cast hstore values on write to be consistent with reading from the db.Yves Senn2013-08-081-4/+4
| |
* | Fix multidimensional PG arrays containing non-string itemsYves Senn2013-08-071-1/+9
| |
* | Refactor `ArrayParser`Vipul A M2013-07-261-15/+22
| | | | | | | | | | * Constantize parse token * Remove extra param passed to `parse_data`
* | `change_column` for PG adapter respects `:array` option.Yves Senn2013-07-161-2/+3
| |
* | remove deprecated `PostgreSQLAdapter#outside_transaction?` method.Yves Senn2013-07-031-7/+0
|/
* Support array as root element in JSONAlexey Noskov2013-05-142-1/+3
|
* Reject blank order_values within #columns_for_distinct, as the orders aren't ↵Ben Woosley2013-05-101-1/+1
| | | | used at all on non-postgres adapters.
* Fix that #exists? can produce invalid SQL: "SELECT DISTINCT DISTINCT"Ben Woosley2013-05-101-7/+2
| | | | | | | | | | | | The combination of a :uniq => true association and the #distinct call in #construct_limited_ids_condition combine to create invalid SQL, because we're explicitly selecting DISTINCT, and also sending #distinct on to AREL, via the relation#distinct_value. Rather than build a select distinct clause in #construct_limited_ids_condition, I set #distinct! and pass just the columns into the select statement. This requires introducing a #columns_for_distinct method to return the select columns but not the statement itself.
* Make SchemaDumper emit "id: :uuid" when appropriate. Fixes #10451.Brian Buchanan2013-05-031-1/+2
|
* 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.
* Revert "Merge pull request #10043 from cconstantine/master"Rafael Mendonça França2013-04-181-15/+0
| | | | | | | This reverts commit 521035af530482d6d9ad2dae568eaeb0ab188e1c, reversing changes made to 222011dbee842bbc60d3aaaa3145356b90a30fd1. Reason: This broke the tests
* Merge pull request #10043 from cconstantine/masterRafael Mendonça França2013-04-181-0/+15
|\ | | | | DB with postgres string array column doesn't load fixtures well
| * Fix loading of string arrays in postgresChris Constantine2013-04-081-0/+15
| |
* | Fix #7619. 0x prefix must be added when assigning hexadecimal string into ↵kennyj2013-04-171-2/+4
| | | | | | | | bit column in Postgresql, because solving ambiguity.
* | Add OID::Bit for supporting bit string.kennyj2013-04-162-2/+19
| |
* | fix for the bytea/binary nil value bugMatt Aimonetti2013-04-141-0/+1
|/
* Do not calculate values if they are not going to be usedCarlos Antonio da Silva2013-03-301-7/+9
| | | | | | | | | When building the indexes list in PostgreSQL, IndexDefinition objects are only created if the query for the related attributes really returns something matching the attributes. In case it does not, the variables for building the definition objects were being created but not used.
* Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL.Ken Mazaika2013-03-271-2/+2
|
* Adds support for concurrent indexing in PostgreSQL adapterDan McClain2013-03-251-6/+2
| | | | | | | | Adds support for algorithm option in MySQL indexes Moves USING and algorithm options upstream The syntax is still specific to the Adapter, so the actual executed string happens in the corresponding adapter
* 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-253-5/+35
|
* Merge branch 'jlxw-patch-2'Rafael Mendonça França2013-03-231-2/+2
|\ | | | | | | Closes #9184
| * Fix regex to strip quotations from hstore valuesjlxw2013-03-231-2/+2
| | | | | | | | Previously regex did not strip quotation marks where hstore values were multi-line strings.
* | Custom index type support with :using.doabit2013-03-241-1/+11
|/
* add uuid primary key supportAaron Patterson2013-03-221-0/+9
|
* push the mysql add_column up to the abstract adapterAaron Patterson2013-03-221-10/+4
|
* allow multiple add columnsAaron Patterson2013-03-221-1/+1
|
* pull add_column_options! off the pg connection classAaron Patterson2013-03-221-0/+13
|
* add a pg visitor for dealing with schema modificationAaron Patterson2013-03-221-4/+21
|
* stop depending on sql_type in pgAaron Patterson2013-03-221-6/+8
|