aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapter_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix CIJon Leighton2011-12-281-3/+3
|
* Revert naive O(1) table_exists? implementation.Jon Leighton2011-12-131-0/+1
| | | | | | | | | | It was a bad idea to rescue exceptions here. This can interfere with transaction rollbacks which seems to be the cause of current CI failure. Instead, each adapter should implement its own DB-specific O(1) implementation, and we fall back on the generic, slower, implementation otherwise.
* namespace the adapter testAaron Patterson2011-11-291-121/+123
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-10/+0
|
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-0/+10
| | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* Fixed test_disable_referential_integrity on OracleRaimonds Simanovskis2011-08-081-0/+3
| | | On Oracle disable_referential_integrity before execution of block will disable foreign key constraints and after block will enable them but when constraints are enabled then they are validated. Therefore created record with invalid foreign key should be deleted before enabling foreign key constraints.
* move around testsAaron Patterson2011-07-211-30/+0
|
* fix postgres connection url testTerence Lee2011-07-201-1/+1
|
* Added test for postgres connections as URL. Fixed query param parsing.Glenn Gillen2011-07-201-0/+13
|
* Provide database connection settings as a URL.Glenn Gillen2011-07-201-0/+11
|
* Create a test case for disable_referential_integrityGabriel Sobrinho2011-07-011-0/+14
|
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Fix adapter_test.rb to make no assumptions about the database nameJon Leighton2011-06-051-2/+7
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | 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.
* herp derpricating add_limit_offset!Aaron Patterson2011-01-031-12/+0
|
* Fix test which prevents connection reset on failing and remove hardcoded ↵Master Lambaster2010-06-181-8/+7
| | | | | | | | connection [#4689 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add parentheses to avoid warnings when running AR tests.Emilio Tagua2010-06-081-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed adapter tests not to assert LIMIT and OFFSET in SQL stringsRaimonds Simanovskis2010-06-041-13/+4
| | | | Fixed adapter test cases that were failing in oracle because the asserts were looking for the presence of offset and limit which are not available in oracle. Changed the tests to check that the sql injection is not present in the output so that the tests are database adapter agnostic.
* Revert "When creating database with rake, create schemas in ↵Michael Koziarski2010-04-091-6/+0
| | | | | | | | | | | | | schema_search_path if it doesn't exist." This reverts commit 6c2a0675f11a9b5b8e88ed7dbccd65cb51be8029. Reverting because it breaks the ability to run tests using a non-superuser. Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb activerecord/lib/active_record/railties/databases.rake
* When creating database with rake, create schemas in schema_search_path if it ↵Rizwan Reza2010-03-281-0/+6
| | | | doesn't exist.
* Add add_limit_offset! to adapters.Emilio Tagua2010-03-251-0/+21
|
* Merge commit 'rails/master'Emilio Tagua2009-08-101-0/+12
|\ | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * No longer require database name for MySQL to allow cross database selects.Tristan Dunn2009-08-091-0/+12
| | | | | | | | | | | | [#1122 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Merge commit 'rails/master'Emilio Tagua2009-08-081-1/+7
|\| | | | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb activerecord/test/cases/method_scoping_test.rb
| * fixed test_foreign_key_violations_are_translated_to_specific_exception to ↵Raimonds Simanovskis2009-08-061-1/+7
| | | | | | | | work with Oracle
| * Fixed adapter test cases that were failing in oracle because the asserts ↵Rob Christie2009-08-061-13/+4
| | | | | | | | were looking for the presence of offset and limit which are not available in oracle. Changed the tests to check that the sql injection is not present in the output so that the tests are database adapter agnostic.
* | Merge commit 'rails/master'Emilio Tagua2009-06-301-0/+15
|\| | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb
| * Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.Michael Schuerig2009-06-261-0/+8
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
| * Translate adapter errors that indicate a violated uniqueness constraint to ↵Michael Schuerig2009-06-261-0/+7
| | | | | | | | | | | | ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | Removed unused methods.Emilio Tagua2009-06-231-21/+0
|/
* Added db:charset support to PostgreSQL. [#556 state:resolved]Sebastian A. Espindola2008-07-141-0/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added SQL escaping for :limit and :offset in MySQL [Jonathan Wiess]David Heinemeier Hansson2008-06-011-1/+1
|
* Added SQL escaping for :limit and :offset [#288 state:closed] (Aaron Bedra, ↵David Heinemeier Hansson2008-05-311-0/+20
| | | | Steven Bristol, Jonathan Wiess)
* Added AbstractAdapter#table_exists? and made AbstractAdapter#table ↵Tarmo Tänav2008-05-071-9/+10
| | | | | | implementation non-optional Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/railsJeremy Kemper2008-01-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix pathsJeremy Kemper2008-01-181-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move tests to casesJeremy Kemper2008-01-181-0/+106
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de