Michael Schoen
2006-Jul-06 05:26 UTC
Rails AR/Oracle Unit Test: [4490] failed (getting worse)
"david" has kicked AR/Oracle while it was down...
http://dev.rubyonrails.org/changeset/4490
------------------------------------------------------------------------
r4490 | david | 2006-06-24 09:27:34 -0700 (Sat, 24 Jun 2006) | 1 line
Cant use separate module [DHH]
------------------------------------------------------------------------
U activesupport/lib/active_support/core_ext/enumerable.rb
Updated to revision 4490.
1) Failure:
test_to_xml(BasicsTest) [./test/base_test.rb:1239]:
<false> is not true.
2) Error:
test_should_group_by_scoped_field(CalculationsTest):
ArgumentError: wrong number of arguments (2 for 0)
./test/../lib/active_record/associations/association_proxy.rb:123:in
`sum''
./test/../lib/active_record/associations/association_proxy.rb:123:in
`method_missing''
./test/../lib/active_record/associations/has_many_association.rb:95:in
`method_missing''
./test/calculations_test.rb:160:in
`test_should_group_by_scoped_field''
3) Error:
test_should_group_by_summed_field_with_conditions_and_having(CalculationsTest):
ArgumentError: wrong number of arguments (2 for 0)
./test/../lib/active_record/associations/association_proxy.rb:123:in
`sum''
./test/../lib/active_record/associations/association_proxy.rb:123:in
`method_missing''
./test/../lib/active_record/associations/has_many_association.rb:95:in
`method_missing''
./test/calculations_test.rb:166:in
`test_should_group_by_summed_field_with_conditions_and_having''
4) Error:
test_should_sum_scoped_field(CalculationsTest):
ArgumentError: wrong number of arguments (1 for 0)
./test/../lib/active_record/associations/association_proxy.rb:123:in
`sum''
./test/../lib/active_record/associations/association_proxy.rb:123:in
`method_missing''
./test/../lib/active_record/associations/has_many_association.rb:95:in
`method_missing''
./test/calculations_test.rb:152:in `test_should_sum_scoped_field''
5) Error:
test_should_sum_scoped_field_with_conditions(CalculationsTest):
ArgumentError: wrong number of arguments (2 for 0)
./test/../lib/active_record/associations/association_proxy.rb:123:in
`sum''
./test/../lib/active_record/associations/association_proxy.rb:123:in
`method_missing''
./test/../lib/active_record/associations/has_many_association.rb:95:in
`method_missing''
./test/calculations_test.rb:156:in
`test_should_sum_scoped_field_with_conditions''
6) Error:
test_add_column_not_null_with_default(MigrationTest):
ActiveRecord::StatementInvalid: OCIError: ORA-01400: cannot insert NULL into
("ARUNIT"."TESTINGS"."ID"): insert into testings
(foo) values (''hello'')
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:277:in
`execute''
./test/migration_test.rb:176:in
`test_add_column_not_null_with_default''
7) Failure:
test_sane_find_with_lock(PessimisticLockingTest) [./test/locking_test.rb:90]:
Exception raised:
Class: <ActiveRecord::StatementInvalid>
Message: <"OCIError: ORA-02014: cannot select FOR UPDATE from view with
DISTINCT, GROUP BY, etc.: select * from (select raw_sql_.*, rownum raw_rnum_
from (SELECT * FROM people WHERE (people.id = 1) ) raw_sql_ where rownum <=
1) where raw_rnum_ > 0 FOR UPDATE">
---Backtrace---
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:277:in
`execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:477:in
`select''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:268:in
`select_all''
./test/../lib/active_record/base.rb:422:in `find_by_sql''
./test/../lib/active_record/base.rb:956:in `find_every''
./test/../lib/active_record/base.rb:950:in `find_initial''
./test/../lib/active_record/base.rb:984:in `find_one''
./test/../lib/active_record/base.rb:973:in `find_from_ids''
./test/../lib/active_record/base.rb:414:in `find''
./test/locking_test.rb:93:in `test_sane_find_with_lock''
./test/../lib/active_record/base.rb:905:in `with_scope''
./test/locking_test.rb:92:in `test_sane_find_with_lock''
./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction''
./test/../lib/active_record/transactions.rb:86:in `transaction''
./test/locking_test.rb:91:in `test_sane_find_with_lock''
./test/locking_test.rb:90:in `test_sane_find_with_lock''
---------------
8) Failure:
test_sane_lock_method(PessimisticLockingTest) [./test/locking_test.rb:101]:
Exception raised:
Class: <ActiveRecord::StatementInvalid>
Message: <"OCIError: ORA-02014: cannot select FOR UPDATE from view with
DISTINCT, GROUP BY, etc.: select * from (select raw_sql_.*, rownum raw_rnum_
from (SELECT * FROM people WHERE (people.id = 1) ) raw_sql_ where rownum <=
1) where raw_rnum_ > 0 FOR UPDATE">
---Backtrace---
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:277:in
`execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:477:in
`select''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:268:in
`select_all''
./test/../lib/active_record/base.rb:422:in `find_by_sql''
./test/../lib/active_record/base.rb:956:in `find_every''
./test/../lib/active_record/base.rb:950:in `find_initial''
./test/../lib/active_record/base.rb:984:in `find_one''
./test/../lib/active_record/base.rb