aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql
Commit message (Collapse)AuthorAgeFilesLines
* Fix GH #5430. A Payload name for schema_search_path should be SCHEMA.kennyj2012-03-151-0/+7
|
* Adds #create/drop_schema on the PostgreSQL Adapter.Travis Jeffery2012-03-071-2/+37
|
* Add #schema_names to PostgreSQL Adapter.Travis Jeffery2012-03-071-0/+4
|
* Remove NULLS FIRST/LAST. closes #5152kennyj2012-02-251-0/+5
|
* Restored ability to identify ID and Sequence from tables relying on a ↵William Lawson2012-02-201-3/+7
| | | | nonmatching sequence default value for PK.
* Merge branch 'joelhoffman-postgres_schema_builder' into instance_readerAaron Patterson2012-02-101-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 databaseJoel2012-02-081-0/+8
| |
| * string_to_hstore / hstore_to_string, serializingJoel2012-02-081-6/+6
| |
| * Additional hstore tests, supporting null values, better compliance with ↵Joel2012-02-081-7/+59
| | | | | | | | postgres docs
* | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-091-0/+6
| |
* | Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-091-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 parametersLars Kanis2012-01-041-0/+15
|
* skip hstore tests on PG databases that do not have hstoreAaron Patterson2011-12-201-2/+8
|
* making sure updates workAaron Patterson2011-12-201-7/+13
|
* hstores can cycleAaron Patterson2011-12-201-2/+26
|
* can create hstore records via AR APIAaron Patterson2011-12-201-0/+7
|
* multiple key / values workAaron Patterson2011-12-201-0/+6
|
* PostgreSQL hstore types are automatically deserialized from the database.Aaron Patterson2011-12-201-0/+16
|
* pg columns should understand the hstore typeAaron Patterson2011-12-201-0/+24
|
* Add missing requireJon Leighton2011-12-031-0/+2
|
* Avoid postgres 9.X syntaxJon Leighton2011-12-031-1/+5
|
* Deprecate set_table_name in favour of self.table_name= or defining your own ↵Jon Leighton2011-11-292-6/+6
| | | | method.
* add the query to AR::Relation#explain outputXavier Noria2011-11-251-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.
* fixing tests on PGAaron Patterson2011-11-161-1/+1
|
* Merge pull request #3521 from ↵Aaron Patterson2011-11-061-0/+4
| | | | | | nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas Fix postgres adapter to handle spaces between schemas
* implements AR::Relation#explainXavier Noria2011-11-051-0/+25
| | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it.
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-4/+12
|
* Merge pull request #3258 from ileitch/3-1-stableAaron Patterson2011-10-201-0/+16
| | | | Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
* reset prepared statement when schema changes imapact statement results. ↵Aaron Patterson2011-10-181-0/+8
| | | | fixes #3335
* refs #3232. Prepared statements and postgreSQL schemas.Juan M. Cuello2011-10-051-0/+19
| | | | | Add tests for prepared statements with multiple schemas in postgreSQL.
* fixing file nameAaron Patterson2011-09-071-0/+0
|
* LRU should cache per process in postgresql. fixes #1339Aaron Patterson2011-09-071-0/+23
|
* Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawrAaron Patterson2011-09-071-0/+6
| | | | | | * https://github.com/rails/rails: Postgresql adapter: added current_schema check for table_exists? Postgresql adapter: added current_schema check for table_exists?
* Merge pull request #2021 from dasch/more_postgres_utilsAaron Patterson2011-08-292-15/+18
|\ | | | | Make #extract_schema_and_table an instance method in Utils
| * Make #extract_schema_and_table an instance method in UtilsDaniel Schierbeck2011-07-092-15/+18
| | | | | | | | Also, move the utils test into its own test case.
* | forgot to add this test caseAaron Patterson2011-07-221-0/+14
|/
* Refactor PostgreSQLAdapter a bitDaniel Schierbeck2011-07-081-2/+2
| | | | | Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send.
* Make PostgreSQL adapter view-compatiblePaul Gallagher2011-06-192-1/+49
| | | * amongst other things, allows meta_search to run against view-backed models
* make extract_schema_and_table a private methodPaul Gallagher2011-06-111-7/+7
|
* remove table quoting in primary_key methodPaul Gallagher2011-06-112-5/+47
| | | * add/cleanup tests
* apply private method indentation conventionPaul Gallagher2011-06-102-3/+3
| | | * tidy test code and fix my typo
* Improve PostgreSQL adapter schema-awarenessPaul Gallagher2011-06-102-2/+122
| | | | | | | * table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour * extract_schema_and_table tests and implementation extended to cover all cases * primary_key does not ignore schema information * add current_schema and schema_exists? methods * more robust table referencing in insert_sql and sql_for_insert methods
* Fix a couple of helper requires that were missed. This was causing the tests ↵Jon Leighton2011-06-071-1/+1
| | | | to fail to run on 1.8.7.
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-066-6/+6
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-047-7/+7
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Add missing require to fix the CIJon Leighton2011-06-011-0/+1
|
* Isolated PostgreSQL test into PostgreSQL folderPrem Sichanugrist2011-05-311-0/+29
|
* Added tsvector Datatype SupportBenjamin Fritsch2011-04-261-0/+25
| | | Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql
* mysql type cast should return integers when typecasting true / falseAaron Patterson2011-04-141-0/+25
|
* use index based substitution for bind parametersAaron Patterson2011-04-131-3/+3
|