aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
Commit message (Collapse)AuthorAgeFilesLines
* Fix GH #5430. A Payload name for schema_search_path should be SCHEMA.kennyj2012-03-151-0/+7
|
* Merge pull request #5306 from kennyj/fix_69c7f02José Valim2012-03-082-2/+2
|\ | | | | Change the message string to use in test case.
| * Change the string to use in test case.kennyj2012-03-072-2/+2
| |
* | Merge pull request #5315 from ↵Aaron Patterson2012-03-071-2/+41
|\ \ | |/ |/| | | | | travisjeffery/enhance_postgresql_adapter_schema_support Enhance PostgreSQL Adapter schema support
| * 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
| |
* | Fix message assertions for quoting database name in "show tables" for mysqlCarlos Antonio da Silva2012-03-042-2/+2
| |
* | Fix GH #3163. Should quote database on mysql/mysql2.kennyj2012-03-052-0/+21
|/
* only log an error if there is a logger. fixes #5226Aaron Patterson2012-03-021-0/+9
|
* 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
* Don't type-cast unknown types to YAML.Stephen Celis2012-01-201-2/+2
|
* Postgresql: add test case for setting custom libpq connection parametersLars Kanis2012-01-041-0/+15
|
* Fix CIJon Leighton2011-12-282-11/+11
|
* remove checks for encodings availabilitySergey Nartimov2011-12-252-16/+6
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-2/+0
|
* 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-294-8/+8
| | | | method.
* add the query to AR::Relation#explain outputXavier Noria2011-11-253-0/+9
| | | | | | | 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 ruby 1.8Aaron Patterson2011-11-201-1/+3
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-0/+1
|
* Verify that #3690 has been closed by previous changes to the mysqlJon Leighton2011-11-192-2/+10
| | | | | | | | adapters. These tests fail on the v3.1.2 tag. Closes #3690.
* fixing tests on PGAaron Patterson2011-11-161-1/+1
|
* revises EXPLAIN tests for SQLite3Xavier Noria2011-11-061-3/+3
| | | | | | | | | | The output in Travis is a bit different. The SQLite documentation (http://www.sqlite.org/eqp.html) warns output may change dramatically between releases. I do not want to mock the result set because I want a real EXPLAIN to happen. I prefer a test that may fail in future releases than a test that may give false positives in future releases.
* 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-053-0/+71
| | | | | | | | | | | | | | | | | | | 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
* fix to remove warning in test casesVishnu Atrai2011-10-161-2/+2
|
* ambiguous first argument; put parentheses or even spaces Warning removed!Arun Agrawal2011-10-101-2/+2
|
* Remove stray whitespaceJeremy Kemper2011-10-091-4/+1
|
* Only use LOWER for mysql case insensitive uniqueness check when column has a ↵Joseph Palermo2011-10-092-0/+73
| | | | case sensitive collation.
* Merge pull request #3232 from Juanmcuello/pg_prepared_statementsAaron Patterson2011-10-061-0/+19
|\ | | | | Use the schema_search_path in prepared statements.
| * refs #3232. Prepared statements and postgreSQL schemas.Juan M. Cuello2011-10-051-0/+19
| | | | | | | | | | Add tests for prepared statements with multiple schemas in postgreSQL.
* | Transactional fixtures enlist all active database connections.Jeremy Kemper2011-10-051-0/+4
|/ | | | You can use multiple databases in your tests without disabling transactional fixtures.