aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #10619 from alno/top_level_array_in_postgres_jsonAaron Patterson2013-05-162-1/+3
|\ | | | | Support array as root element in Postgresql JSON columns
| * Support array as root element in JSONAlexey Noskov2013-05-142-1/+3
| |
* | tiny types should only be integers when the length is <= 1. fixes #10620Aaron Patterson2013-05-151-3/+9
| |
* | Also support extensions in PostgreSQL 9.1, because this has been supported ↵kennyj2013-05-151-4/+4
|/ | | | since 9.1.
* Merge pull request #10556 from Empact/deprecate-schema-statements-distinctRafael Mendonça França2013-05-121-1/+2
| | | | | | Deprecate SchemaStatements#distinct, and make SchemaStatements#columns_for_distinct nodoc. Conflicts: activerecord/CHANGELOG.md
* Merge pull request #10572 from nertzy/dont-modify-options-hash-in-primary-keyRafael Mendonça França2013-05-111-2/+1
| | | | Don't modify args in TableDefinition#primary_key
* 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-102-10/+13
| | | | | | | | | | | | 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.
* Revert "Merge pull request #10455 from ↵Aaron Patterson2013-05-071-6/+2
| | | | | | | patricksrobertson/bigserial_id_not_identifying_pk" This reverts commit 3043d45eefc3776d5f3a9e7d212a01f99d869ef8, reversing changes made to ca0275d36b395631725c4583db5a45c06443fdb9.
* Handle other pk types in PostgreSQL gracefully.Patrick Robertson2013-05-071-2/+6
| | | | | | | | | | | | | | In #10410 it was noted that you can no longer create PK's with the type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly because the newer adapter is checking for column type with the id column instead of just letting it pass through like it did before. Side effects: You may just create a PK column of a type that you really don't want to be your PK. As far as I can tell this was allowed in 3.2.X and perhaps an exception should be raised if you try and do something extremely dumb.
* Changing method call according to coding conventionsAkshay Khole2013-05-051-1/+1
|
* Make SchemaDumper emit "id: :uuid" when appropriate. Fixes #10451.Brian Buchanan2013-05-031-1/+2
|
* Add parameter :sslcompression to PostgreSQL adapter.Lars Kanis2013-05-021-2/+2
| | | | It is new in PostgreSQL-9.2 .
* Improve docs for postgresql with uuid primary keys [ci skip]Carlos Antonio da Silva2013-05-011-8/+7
| | | | Introduced in 09ac1776abc0d3482f491f2d49f47bcb3d9a4ad7.
* allow override of uuid_generate_v4() default by passing default: nilChad Moone2013-05-011-1/+30
| | | | without this, it's not possible to use UUID primary keys without uuid-ossp installed and activated
* maintain return value for recreate_databaseAaron Patterson2013-04-301-1/+2
|
* mysql needs to reconnect after recreate. Thanks @mperhamAaron Patterson2013-04-301-0/+1
|
* StatementInvalid takes WrappedDatabaseException's placeJeremy Kemper2013-04-282-2/+2
|
* Move method used only in the test to the test code itselfIvan Kataitsev2013-04-251-8/+0
|
* fix typosVipul A M2013-04-211-1/+1
|
* 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
|/
* Correctly parse bigint defaults in PostgreSQLErik Peterson2013-04-051-1/+1
|
* Per #9999 revert the revert changing so columns are only tested for empty? ↵Sam2013-04-031-4/+4
| | | | | | as opposed to blank? This is both faster and more correct, added tests to make sure this is not reverted again.
* Merge pull request #10010 from pwnall/fix_ref_index_trueRafael Mendonça França2013-04-011-1/+1
|\ | | | | Make references with index:true pass Hash options to add_index
| * Make references with index:true pass Hash options to add_index.Victor Costan2013-04-011-1/+1
| |
* | fix detect column type of enummasarakki2013-04-011-2/+2
|/ | | | enum includes text or blob or ... hooked by wrong regex
* Refactor index algorithm lookup so that it only builds the available options ↵Carlos Antonio da Silva2013-03-301-4/+4
| | | | | | | | | | | once This way the available options are only built for actually fetching the algorithm in case the option is given. The options are going to be necessary a second time only in case the option is given but does not exist, which is supposed to be due to a typo or something like that, so no problem.
* Minor doc improvement about index algorithms [ci skip]Carlos Antonio da Silva2013-03-301-3/+2
|
* 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.
* Make docs a little bit more consistent with colons [ci skip]Carlos Antonio da Silva2013-03-301-9/+9
|
* Fix code examples indent in new index options docs [ci skip]Carlos Antonio da Silva2013-03-301-3/+3
|
* Use new hash style in doc examples [ci skip]Carlos Antonio da Silva2013-03-301-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-03-304-7/+7
|\ | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/adapter_test.rb guides/source/testing.md [ci skip]
| * nodoc AR::ConnectionHandling for adapters [ci skip]Francesco Rodriguez2013-03-154-7/+7
| |
| * Unmatched parenthesis fixRobin Dupret2013-03-151-1/+1
| |
* | added comments to test_invalid_type in sqlite3 adapter test and added ↵Ranjay Krishna2013-03-282-4/+4
| | | | | | | | valid_type? method to abstract_adapter.rb and removed unnecessary method from sqlite3 adapter
* | Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL.Ken Mazaika2013-03-274-6/+25
| |
* | Merge pull request #9928 from vipulnsward/fix_rename_auto_increment_mysqlRafael Mendonça França2013-03-264-10/+14
|\ \ | | | | | | respect auto_increment in rename_column for mysql
| * | respect auto_increment in rename_column for mysqlVipul A M2013-03-274-10/+14
| | |
* | | Checks :algorithm argument for valid valuesDan McClain2013-03-261-1/+7
| | |
* | | Adds support for concurrent indexing in PostgreSQL adapterDan McClain2013-03-255-14/+24
|/ / | | | | | | | | | | | | | | 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-252-7/+6
| | | | | | | | | | | | | | 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
| |