Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | log the statement name along with the SQL | Aaron Patterson | 2013-10-04 | 1 | -1/+1 |
| | |||||
* | log every sql statement, even when they error | Aaron Patterson | 2013-10-04 | 1 | -25/+25 |
| | |||||
* | prepare the statement inside the begin / rescue block | Aaron Patterson | 2013-10-04 | 1 | -4/+4 |
| | |||||
* | wrap logging around the actual query call itself. | Aaron Patterson | 2013-10-04 | 1 | -25/+29 |
| | | | | This is to be consistent with the way the mysql2 adapter times queries | ||||
* | extract adapter savepoint implementations into `abstract/savepoints.rb`. | Yves Senn | 2013-09-30 | 1 | -5/+1 |
| | |||||
* | Merge pull request #11382 from kennyj/fix_10751-2 | Rafael Mendonça França | 2013-09-22 | 1 | -3/+6 |
|\ | | | | | | | | | | | | | Dump UUID default functions to schema.rb [2nd version]. Fixes #10751. Conflicts: activerecord/CHANGELOG.md | ||||
| * | Migration dump UUID default functions to schema.rb. Fixes #10751. | kennyj | 2013-07-10 | 1 | -3/+6 |
| | | |||||
* | | Check if the SQL is not a prepared statement | Rafael Mendonça França | 2013-09-11 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | 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 | ||||
* | | cast hstore values on write to be consistent with reading from the db. | Yves Senn | 2013-08-08 | 1 | -0/+8 |
| | | |||||
* | | Removed redundant xml override from pg adapter | Paul Nikitochkin | 2013-08-02 | 1 | -7/+3 |
|/ | | | | Closes: #11706 | ||||
* | Handle single quotes in PostgreSQL default column values | Dylan Markow | 2013-06-19 | 1 | -1/+1 |
| | | | | | | | | | | PostgreSQL escapes single quotes by using an additional single quote. When Rails queries the column information, PostgreSQL returns the default values with the escaped single quotes. #extract_value_from_default now converts these to one single quote each. Fixes #10881. | ||||
* | Also support extensions in PostgreSQL 9.1, because this has been supported ↵ | kennyj | 2013-05-15 | 1 | -4/+4 |
| | | | | since 9.1. | ||||
* | Revert "Merge pull request #10455 from ↵ | Aaron Patterson | 2013-05-07 | 1 | -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 Robertson | 2013-05-07 | 1 | -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 conventions | Akshay Khole | 2013-05-05 | 1 | -1/+1 |
| | |||||
* | Add parameter :sslcompression to PostgreSQL adapter. | Lars Kanis | 2013-05-02 | 1 | -2/+2 |
| | | | | It is new in PostgreSQL-9.2 . | ||||
* | Improve docs for postgresql with uuid primary keys [ci skip] | Carlos Antonio da Silva | 2013-05-01 | 1 | -8/+7 |
| | | | | Introduced in 09ac1776abc0d3482f491f2d49f47bcb3d9a4ad7. | ||||
* | allow override of uuid_generate_v4() default by passing default: nil | Chad Moone | 2013-05-01 | 1 | -1/+30 |
| | | | | without this, it's not possible to use UUID primary keys without uuid-ossp installed and activated | ||||
* | Correctly parse bigint defaults in PostgreSQL | Erik Peterson | 2013-04-05 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-03-30 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | | | | | 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 Rodriguez | 2013-03-15 | 1 | -2/+2 |
| | | |||||
* | | Adds support for concurrent indexing in PostgreSQL adapter | Dan McClain | 2013-03-25 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | | Make Postgres point type correspond to ruby array with two floats inside | Martin Schürrer | 2013-03-25 | 1 | -1/+8 |
| | | |||||
* | | Created a layer of abstraction for the valid type checking in schema dumper. ↵ | Ranjay Krishna | 2013-03-25 | 1 | -0/+4 |
| | | | | | | | | Now, connection handles the check for valid types so that each database can handle the changes individually. | ||||
* | | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+7 |
| | | |||||
* | | pull add_column_options! off the pg connection class | Aaron Patterson | 2013-03-22 | 1 | -13/+0 |
| | | |||||
* | | push SQL generation inside the schema creation object | Aaron Patterson | 2013-03-22 | 1 | -2/+2 |
| | | |||||
* | | mostly decouple TableDefinition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -1/+1 |
| | | |||||
* | | decouple column definition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -2/+2 |
| | | |||||
* | | use `connect_poll` on pg so that reaping does not hurt the connection | Aaron Patterson | 2013-03-20 | 1 | -2/+1 |
| | | |||||
* | | you can provide uuid_generate_v4 as the default value for uuid columns | Aaron Patterson | 2013-03-14 | 1 | -1/+7 |
| | | |||||
* | | pg is the only adapter that supports the xml type, so push the method down | Aaron Patterson | 2013-03-14 | 1 | -0/+4 |
| | | |||||
* | | extract factory method and push common code up to abstract adapter | Aaron Patterson | 2013-03-14 | 1 | -5/+2 |
| | | |||||
* | | Also quote extension name in disable_extension | Stephen Touset | 2013-03-12 | 1 | -1/+1 |
| | | | | | | A patch was committed recently which quoted the extension name in the SQL for `enable_extension`. But the same wasn't done for `disable_extension`. | ||||
* | | fixes enable_extension bug in postgresql_adapter | Darren Woodley | 2013-03-08 | 1 | -1/+1 |
|/ | | | | | | | | | The use of quotations is required to install extensions with certain characters in them (e.g. uuid-ossp). removes CHANGELOG entry Deemed unnecessary. | ||||
* | Unprepared Visitor + unprepared_statement | Cédric FABIANSKI | 2013-03-08 | 1 | -1/+1 |
| | |||||
* | Wrong exception is occured when raising no translatable exception | kennyj | 2013-03-01 | 1 | -0/+2 |
| | |||||
* | Support PostgreSQL specific column types when using `change_table`. | Yves Senn | 2013-02-28 | 1 | -2/+14 |
| | | | | | | | | Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`. | ||||
* | Do not type cast all the database url values. | Rafael Mendonça França | 2013-02-24 | 1 | -3/+3 |
| | | | | | | We should only type cast when we need to use. Related to 4b005fb371c2e7af80df7da63be94509b1db038c | ||||
* | Remove valid_type? method | Jon Leighton | 2013-02-15 | 1 | -4/+0 |
| | | | | | It was supposed to be removed by the preceding two reversions but I did them in the wrong order. | ||||
* | Revert "Make valid_type? public" | Jon Leighton | 2013-02-15 | 1 | -4/+4 |
| | | | | | | This reverts commit 5d528f835e871f5f9d4b68e8a81cfbe900b7e718. Relates to f8c8ad5 which is also getting reverted due to failing test. | ||||
* | Make valid_type? public | Sam Ruby | 2013-02-14 | 1 | -4/+4 |
| | |||||
* | Merge pull request #9204 from ranjaykrishna/col-prob | Aaron Patterson | 2013-02-12 | 1 | -0/+4 |
|\ | | | | | schema dumper tests now conducted by ActiveRecord::Base.Connection | ||||
| * | checking in the abstractions for valid type checking: | Ranjay Krishna | 2013-02-12 | 1 | -0/+4 |
| | | |||||
* | | Call super to use the abstract adapter implementation instead | Carlos Antonio da Silva | 2013-02-06 | 1 | -1/+1 |
| | | |||||
* | | add ActiveRecord::AbstractAdapter#extensions and ↵ | Justin George | 2013-02-06 | 1 | -0/+9 |
| | | | | | | | | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#extensions to allow dumping of enabled extensions to schema.rb, add ActiveRecord::SchemaDumper#extensions to dump extensions to schema.rb | ||||
* | | reloading type map on extension changing | Aaron Patterson | 2013-01-29 | 1 | -2/+11 |
| | | |||||
* | | fixing comment | Aaron Patterson | 2013-01-29 | 1 | -1/+1 |
| | | |||||
* | | Fix typo | Rafael Mendonça França | 2013-01-29 | 1 | -1/+1 |
| | | |||||
* | | Only search for enabled extension if the PostgreSQL version supports | Rafael Mendonça França | 2013-01-29 | 1 | -3/+5 |
| | | | | | | | | extensions |