Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moves column dump specific code to a module included in AbstractAdapter | Dan McClain | 2012-09-14 | 2 | -6/+104 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | postgres, map scaled intervals to string datatype (#7518) | Yves Senn | 2012-09-06 | 1 | -1/+3 |
| | |||||
* | Put the create_table block in a transaction. | Rafael Mendonça França | 2012-09-05 | 1 | -2/+4 |
| | | | | | This will solve the issue that abort the connection transaction when we skip the tests. | ||||
* | ActiveRecord support to PostgreSQL 9.2 JSON type | Dickson S. Guedes | 2012-09-05 | 1 | -0/+69 |
| | | | | | | | | | 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 adapter | Konstantin Shabanov | 2012-09-05 | 1 | -3/+0 |
| | |||||
* | Fix only-once stub logic. | Steve Jorgensen | 2012-08-08 | 1 | -1/+1 |
| | | | | | Didn't fail the test because adapter#query happens to not call raw connection's #query, but don't want to count on that and have a fragile test. | ||||
* | Fix just-plain-wrongness of psql auto-reconnect test. | Steve Jorgensen | 2012-08-07 | 1 | -8/+9 |
| | | | | | | Full test requiring manual intervention was fine, but w/ simulated disconnect, assertion was backward & still passing. Was several kinds of wrong. | ||||
* | Stop being silly with formatting of method aliasing. | Steve Jorgensen | 2012-07-16 | 1 | -3/+3 |
| | |||||
* | Simulated & actual (manual/skipped) PostgreSQL auto-reconnection tests. | Steve Jorgensen | 2012-07-16 | 1 | -0/+72 |
| | |||||
* | Unify the collation API for the database adpters | Rafael Mendonça França | 2012-07-01 | 2 | -4/+4 |
| | |||||
* | Support collate and ctype on the PostgreSQL. | kennyj | 2012-06-29 | 2 | -0/+12 |
| | |||||
* | Allow precision option for postgresql datetimes | Tony Schneider | 2012-06-22 | 1 | -0/+65 |
| | | | | | | | | | | This patch addresses the difficulty of retrieving datetime fields. By default, the database holds a higher precision than the time as a String. This issue is discussed at length at the following links: - [#3519](https://github.com/rails/rails/issues/3519) - [#3520](https://github.com/rails/rails/issues/3520) Also, kudos to @mattscilipoti | ||||
* | Change minimum (default) log level in PostgreSQL to warning. | kennyj | 2012-06-18 | 1 | -0/+4 |
| | |||||
* | Add uuid type support to PostgreSQL adapter | Konstantin Shabanov | 2012-06-14 | 1 | -0/+15 |
| | |||||
* | Fix logs name consistency. | kennyj | 2012-05-19 | 1 | -0/+44 |
| | |||||
* | Removes NetAddr dependency | Dan McClain | 2012-05-08 | 1 | -3/+4 |
| | |||||
* | Converts inet and cidr columns to NetAddr::CIDR | Dan Seaver | 2012-05-07 | 1 | -4/+6 |
| | |||||
* | Adds migration and schema dump support for INET, CIDR, and MACADDR | Dan Seaver | 2012-05-05 | 1 | -3/+3 |
| | |||||
* | Merge pull request #3713 from kf8a/master | Aaron Patterson | 2012-05-04 | 1 | -0/+12 |
|\ | | | | | postgresql adapter should quote not a number and infinity correctly for float columns | ||||
| * | postgresql adapter handles quoting of not a number (NaN) and Infinity | Sven Bohm | 2011-11-21 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #5698 from dougcole/support_postgresql_partitioning | Aaron Patterson | 2012-04-27 | 1 | -0/+31 |
|\ \ | | | | | | | Support postgresql partitioning by making INSERT RETURNING optional | ||||
| * | | refactor configuration of insert_returning | Doug Cole | 2012-04-07 | 1 | -19/+15 |
| | | | |||||
| * | | pick better names and add a little documentation | Doug Cole | 2012-04-01 | 1 | -8/+8 |
| | | | |||||
| * | | improve test coverage | Doug Cole | 2012-03-31 | 1 | -0/+26 |
| | | | |||||
| * | | add use_returning as a postgresql connection config | Doug Cole | 2012-03-31 | 1 | -0/+9 |
| | | | |||||
* | | | %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other ↵ | Jon Leighton | 2012-04-27 | 1 | -3/+3 |
| | | | | | | | | | | | | things | ||||
* | | | Always quote hstore keys and values | Ryan Fitzgerald | 2012-04-24 | 1 | -1/+9 |
|/ / | | | | | | | | | | | | | escape_hstore uses quotation marks around keys and values only if it seems necessary. However, it currently breaks in the presence of some non-ASCII characters. Instead of trying to guess exactly which characters are safe, it seems better to always use quotes. | ||||
* | | Fix GH #5430. A Payload name for schema_search_path should be SCHEMA. | kennyj | 2012-03-15 | 1 | -0/+7 |
| | | |||||
* | | Adds #create/drop_schema on the PostgreSQL Adapter. | Travis Jeffery | 2012-03-07 | 1 | -2/+37 |
| | | |||||
* | | Add #schema_names to PostgreSQL Adapter. | Travis Jeffery | 2012-03-07 | 1 | -0/+4 |
| | | |||||
* | | Remove NULLS FIRST/LAST. closes #5152 | kennyj | 2012-02-25 | 1 | -0/+5 |
| | | |||||
* | | Restored ability to identify ID and Sequence from tables relying on a ↵ | William Lawson | 2012-02-20 | 1 | -3/+7 |
| | | | | | | | | nonmatching sequence default value for PK. | ||||
* | | Merge branch 'joelhoffman-postgres_schema_builder' into instance_reader | Aaron Patterson | 2012-02-10 | 1 | -8/+68 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * joelhoffman-postgres_schema_builder: Also support writing the hstore back to the database Hstore values are all strings string_to_hstore / hstore_to_string, serializing don't test schema where hstore not installed schema dumper tests for hstore Additional hstore tests, supporting null values, better compliance with postgres docs add hstore to postgres native types and defaults Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | ||||
| * | | Also support writing the hstore back to the database | Joel | 2012-02-08 | 1 | -0/+8 |
| | | | |||||
| * | | string_to_hstore / hstore_to_string, serializing | Joel | 2012-02-08 | 1 | -6/+6 |
| | | | |||||
| * | | Additional hstore tests, supporting null values, better compliance with ↵ | Joel | 2012-02-08 | 1 | -7/+59 |
| | | | | | | | | | | | | postgres docs | ||||
* | | | Made schema dumper recognize partial indices' where statements | Marcelo Silveira | 2012-02-09 | 1 | -0/+6 |
| | | | |||||
* | | | Added where option to add_index to support postgresql partial indices | Marcelo Silveira | 2012-02-09 | 1 | -0/+12 |
|/ / | | | | | | | | | | | | | | | | | | | | | The `add_index` method now supports a `where` option that receives a string with the partial index criteria. add_index(:accounts, :code, :where => "active") Generates CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active | ||||
* | | Postgresql: add test case for setting custom libpq connection parameters | Lars Kanis | 2012-01-04 | 1 | -0/+15 |
| | | |||||
* | | skip hstore tests on PG databases that do not have hstore | Aaron Patterson | 2011-12-20 | 1 | -2/+8 |
| | | |||||
* | | making sure updates work | Aaron Patterson | 2011-12-20 | 1 | -7/+13 |
| | | |||||
* | | hstores can cycle | Aaron Patterson | 2011-12-20 | 1 | -2/+26 |
| | | |||||
* | | can create hstore records via AR API | Aaron Patterson | 2011-12-20 | 1 | -0/+7 |
| | | |||||
* | | multiple key / values work | Aaron Patterson | 2011-12-20 | 1 | -0/+6 |
| | | |||||
* | | PostgreSQL hstore types are automatically deserialized from the database. | Aaron Patterson | 2011-12-20 | 1 | -0/+16 |
| | | |||||
* | | pg columns should understand the hstore type | Aaron Patterson | 2011-12-20 | 1 | -0/+24 |
| | | |||||
* | | Add missing require | Jon Leighton | 2011-12-03 | 1 | -0/+2 |
| | | |||||
* | | Avoid postgres 9.X syntax | Jon Leighton | 2011-12-03 | 1 | -1/+5 |
| | | |||||
* | | Deprecate set_table_name in favour of self.table_name= or defining your own ↵ | Jon Leighton | 2011-11-29 | 2 | -6/+6 |
| | | | | | | | | method. | ||||
* | | add the query to AR::Relation#explain output | Xavier Noria | 2011-11-25 | 1 | -0/+3 |
|/ | | | | | | | Rationale: this is more readable if serveral queries are involved in one call. Also, it will be possible to let AR log EXPLAINs automatically in production mode, where queries are not even around. |