Master Lambaster
a7cae64104
Fix test which prevents connection reset on failing and remove hardcoded connection
...
[#4689 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-06-18 15:28:14 -07:00
Emilio Tagua
ab2877cbe8
Add parentheses to avoid warnings when running AR tests.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 21:16:19 +02:00
Raimonds Simanovskis
05ef038bb9
Fixed adapter tests not to assert LIMIT and OFFSET in SQL strings
...
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.
2010-06-04 22:44:03 +03:00
Michael Koziarski
1e3dce08e1
Revert "When creating database with rake, create schemas in schema_search_path if it doesn't exist."
...
This reverts commit 6c2a0675f1
.
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
2010-04-09 11:30:40 +12:00
Rizwan Reza
6c2a0675f1
When creating database with rake, create schemas in schema_search_path if it doesn't exist.
2010-03-28 11:01:15 +04:30
Emilio Tagua
e3a2fae05d
Add add_limit_offset! to adapters.
2010-03-25 12:37:38 -03:00
Emilio Tagua
0e2fbd80e2
Merge commit 'rails/master'
...
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
2009-08-10 18:07:33 -03:00
Tristan Dunn
1af9bd58a0
No longer require database name for MySQL to allow cross database selects.
...
[#1122 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-09 14:35:57 -07:00
Emilio Tagua
9520143159
Merge commit 'rails/master'
...
Conflicts:
activerecord/test/cases/adapter_test.rb
activerecord/test/cases/method_scoping_test.rb
2009-08-08 19:14:35 -03:00
Raimonds Simanovskis
53be10c5e6
fixed test_foreign_key_violations_are_translated_to_specific_exception to work with Oracle
2009-08-06 23:41:00 +03:00
Rob Christie
7e560d0b0d
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.
2009-08-06 23:40:58 +03:00
Emilio Tagua
9c70442534
Merge commit 'rails/master'
...
Conflicts:
activerecord/test/cases/adapter_test.rb
2009-06-30 19:34:26 -03:00
Michael Schuerig
00a5fd3d18
Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2009-06-26 16:52:55 +12:00
Michael Schuerig
53a3eaa860
Translate adapter errors that indicate a violated uniqueness constraint to ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2009-06-26 16:52:54 +12:00
Emilio Tagua
4864f92ee3
Removed unused methods.
2009-06-23 17:57:31 -03:00
Sebastian A. Espindola
0176e6adb3
Added db:charset support to PostgreSQL. [ #556 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 04:11:52 +01:00
David Heinemeier Hansson
3282bf3b50
Added SQL escaping for :limit and :offset in MySQL [Jonathan Wiess]
2008-06-01 09:15:11 -07:00
David Heinemeier Hansson
ef0ea782b1
Added SQL escaping for :limit and :offset [ #288 state:closed] (Aaron Bedra, Steven Bristol, Jonathan Wiess)
2008-05-31 16:57:46 -07:00
Tarmo Tänav
8877ab5852
Added AbstractAdapter#table_exists? and made AbstractAdapter#table implementation non-optional
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-05-07 13:01:46 +12:00
Jeremy Kemper
39814fcce0
Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-21 17:20:51 +00:00
Jeremy Kemper
1e70928014
Fix paths
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-18 07:31:37 +00:00
Jeremy Kemper
42b39ae3f2
Move tests to cases
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-18 07:30:42 +00:00