Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | cast hstore values on write to be consistent with reading from the db. | Yves Senn | 2013-08-08 | 1 | -4/+4 | |
| | | ||||||
* | | Fix multidimensional PG arrays containing non-string items | Yves Senn | 2013-08-07 | 1 | -1/+9 | |
| | | ||||||
* | | Refactor `ArrayParser` | Vipul A M | 2013-07-26 | 1 | -15/+22 | |
| | | | | | | | | | | * Constantize parse token * Remove extra param passed to `parse_data` | |||||
* | | `change_column` for PG adapter respects `:array` option. | Yves Senn | 2013-07-16 | 1 | -2/+3 | |
| | | ||||||
* | | remove deprecated `PostgreSQLAdapter#outside_transaction?` method. | Yves Senn | 2013-07-03 | 1 | -7/+0 | |
|/ | ||||||
* | Support array as root element in JSON | Alexey Noskov | 2013-05-14 | 2 | -1/+3 | |
| | ||||||
* | Reject blank order_values within #columns_for_distinct, as the orders aren't ↵ | Ben Woosley | 2013-05-10 | 1 | -1/+1 | |
| | | | | used at all on non-postgres adapters. | |||||
* | Fix that #exists? can produce invalid SQL: "SELECT DISTINCT DISTINCT" | Ben Woosley | 2013-05-10 | 1 | -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 Buchanan | 2013-05-03 | 1 | -1/+2 | |
| | ||||||
* | Fix loading of fixtures when the column type is a postgres array of strings. | Chris Constantine | 2013-04-18 | 1 | -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ça | 2013-04-18 | 1 | -15/+0 | |
| | | | | | | | This reverts commit 521035af530482d6d9ad2dae568eaeb0ab188e1c, reversing changes made to 222011dbee842bbc60d3aaaa3145356b90a30fd1. Reason: This broke the tests | |||||
* | Merge pull request #10043 from cconstantine/master | Rafael Mendonça França | 2013-04-18 | 1 | -0/+15 | |
|\ | | | | | DB with postgres string array column doesn't load fixtures well | |||||
| * | Fix loading of string arrays in postgres | Chris Constantine | 2013-04-08 | 1 | -0/+15 | |
| | | ||||||
* | | Fix #7619. 0x prefix must be added when assigning hexadecimal string into ↵ | kennyj | 2013-04-17 | 1 | -2/+4 | |
| | | | | | | | | bit column in Postgresql, because solving ambiguity. | |||||
* | | Add OID::Bit for supporting bit string. | kennyj | 2013-04-16 | 2 | -2/+19 | |
| | | ||||||
* | | fix for the bytea/binary nil value bug | Matt Aimonetti | 2013-04-14 | 1 | -0/+1 | |
|/ | ||||||
* | Do not calculate values if they are not going to be used | Carlos Antonio da Silva | 2013-03-30 | 1 | -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 Mazaika | 2013-03-27 | 1 | -2/+2 | |
| | ||||||
* | Adds support for concurrent indexing in PostgreSQL adapter | Dan McClain | 2013-03-25 | 1 | -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 typo | Rafael Mendonça França | 2013-03-25 | 1 | -1/+1 | |
| | ||||||
* | The sql_type method called here is from | Rafael Mendonça França | 2013-03-25 | 1 | -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 too | Martin Schürrer | 2013-03-25 | 1 | -5/+6 | |
| | ||||||
* | Make Postgres point type correspond to ruby array with two floats inside | Martin Schürrer | 2013-03-25 | 3 | -5/+35 | |
| | ||||||
* | Merge branch 'jlxw-patch-2' | Rafael Mendonça França | 2013-03-23 | 1 | -2/+2 | |
|\ | | | | | | | Closes #9184 | |||||
| * | Fix regex to strip quotations from hstore values | jlxw | 2013-03-23 | 1 | -2/+2 | |
| | | | | | | | | Previously regex did not strip quotation marks where hstore values were multi-line strings. | |||||
* | | Custom index type support with :using. | doabit | 2013-03-24 | 1 | -1/+11 | |
|/ | ||||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+9 | |
| | ||||||
* | push the mysql add_column up to the abstract adapter | Aaron Patterson | 2013-03-22 | 1 | -10/+4 | |
| | ||||||
* | allow multiple add columns | Aaron Patterson | 2013-03-22 | 1 | -1/+1 | |
| | ||||||
* | pull add_column_options! off the pg connection class | Aaron Patterson | 2013-03-22 | 1 | -0/+13 | |
| | ||||||
* | add a pg visitor for dealing with schema modification | Aaron Patterson | 2013-03-22 | 1 | -4/+21 | |
| | ||||||
* | stop depending on sql_type in pg | Aaron Patterson | 2013-03-22 | 1 | -6/+8 | |
| | ||||||
* | Cast number to string in Postgres | Łukasz Strzałkowski | 2013-03-12 | 1 | -3/+6 | |
| | | | | fixes #9170 | |||||
* | Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::Time | Troy Kruthoff | 2013-03-01 | 1 | -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 | |||||
* | also rename indexes when a table or column is renamed | Yves Senn | 2013-02-20 | 1 | -3/+6 | |
| | | | | When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed. | |||||
* | Fix typo | Rafael Mendonça França | 2013-01-31 | 1 | -2/+2 | |
| | ||||||
* | reloading type map on extension changing | Aaron Patterson | 2013-01-29 | 1 | -0/+4 | |
| | ||||||
* | Fix cases where delete_records on a has_many association caused errors | Derek Kraan | 2013-01-27 | 1 | -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 support | bUg | 2013-01-23 | 4 | -59/+80 | |
| | ||||||
* | Don't rely on Hash key's ordering | Vitor Baptista | 2013-01-16 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | If we set encoding latin1 for a PostgreSQL database, it calls PostgreSQLAdapter::create_database with options that have, among other things: { 'encoding' => 'latin1' } Then, we use reverse_merge(:encoding => "utf8") to setup the default encoding. In the end, the hash looks like: { :encoding => 'utf8', 'encoding' => 'latin1' } The call to options.symbolize_keys calls to_sym on each_key of this Hash. It usually means that the encoding passed overwrites the default utf8, but it's not guaranteed. So, we shouldn't rely on it. The same was happening in ActiveRecord::ConnectionHandling. | |||||
* | These are already required through AS/rails | Akira Matsuda | 2013-01-07 | 1 | -2/+0 | |
| | | | | | | * dependencies/autoload * concern * deprecation | |||||
* | Support for PostgreSQL's ltree data type. | Rob Worley | 2013-01-04 | 1 | -0/+1 | |
| | ||||||
* | Reuse the Column integer converter | Rafael Mendonça França | 2013-01-03 | 1 | -1/+1 | |
| | ||||||
* | #5523 Add ability for postgresql adapter to disable user triggers in ↵ | Gary S. Weaver | 2012-12-18 | 1 | -4/+12 | |
| | | | | disable_referential_integrity. | |||||
* | AR supporting new int4range and int8range data type on PostgreSQL >= 9.2. ↵ | Alexey | 2012-12-17 | 1 | -4/+11 | |
| | | | | Fix realization | |||||
* | AR supporting new intrange data type on PostgreSQL >= 9.2 | Alexey | 2012-12-16 | 4 | -0/+52 | |
| | ||||||
* | Fix #8414. Performance problem with postgresql adapter primary_key function. | kennyj | 2012-12-05 | 1 | -3/+2 | |
| | ||||||
* | pg_namespace table isn't used. | kennyj | 2012-12-05 | 1 | -1/+0 | |
| | ||||||
* | Merge pull request #6245 from bogdan/bc_timestamp | Rafael Mendonça França | 2012-11-21 | 2 | -3/+9 | |
|\ | | | | | Postgresql adapter: fix handling of BC timestamps | |||||
| * | Fix postgresql adapter to handle bc timestamps correctly | Bogdan Gusiev | 2012-11-21 | 2 | -3/+9 | |
| | |