Michael Schoen
2006-Oct-15 16:43 UTC
Rails AR/Oracle Unit Test: [5305] failed (getting worse)
"rick" has kicked AR/Oracle while it was down...
http://dev.rubyonrails.org/changeset/5305
------------------------------------------------------------------------
r5305 | rick | 2006-10-15 09:37:11 -0700 (Sun, 15 Oct 2006) | 1 line
Fix has_many :through to add the appropriate conditions when going through an
association using STI. Closes #5783. [Jonathan Viney]
------------------------------------------------------------------------
U activerecord/test/associations/join_model_test.rb
U activerecord/test/associations/eager_test.rb
U activerecord/test/fixtures/author.rb
Updated to revision 5305.
1) Error:
test_load_schema(AAACreateTablesTest):
ActiveRecord::StatementInvalid:
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:128:in
`log'': OCIError: ORA-00972: identifier is too long: CREATE TABLE
lock_with_custom_column_without_defaults (id NUMBER(38) NOT NULL PRIMARY KEY,
custom_lock_version NUMBER(38))
./test/aaa_create_tables_test.rb:18:in `test_load_schema''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:243:in
`execute''
./test/../lib/active_record/connection_adapters/abstract/schema_statements.rb:104:in
`create_table''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:368:in
`create_table''
./test/../lib/active_record/migration.rb:274:in `method_missing''
./test/../lib/active_record/migration.rb:258:in `say_with_time''
/usr/pkg/ruby184/lib/ruby/1.8/benchmark.rb:293:in `measure''
./test/../lib/active_record/migration.rb:258:in `say_with_time''
./test/../lib/active_record/migration.rb:272:in `method_missing''
(eval):57:in `test_load_schema''
./test/../lib/active_record/schema.rb:43:in `define''
(eval):1:in `test_load_schema''
./test/aaa_create_tables_test.rb:18:in `test_load_schema''
2) Failure:
test_has_many_through_has_many_with_sti(AssociationsJoinModelTest)
[./test/associations/join_model_test.rb:467]:
<[#<SpecialComment:0x4604b1fc
@attributes {"body"=>"Don''t think too hard",
"type"=>"SpecialComment",
"post_id"=>2,
"id"=>3}>]> expected but was
<[#<Comment:0x46043524 @attributes={"body"=>"Normal
type", "type"=>"Comment", "post_id"=>5,
"id"=>9}>, #<SpecialComment:0x46040b1c
@attributes={"body"=>"Special type",
"type"=>"SpecialComment", "post_id"=>4,
"id"=>6}>, #<SpecialComment:0x4603da5c
@attributes={"body"=>"Special type 2",
"type"=>"SpecialComment", "post_id"=>4,
"id"=>7}>, #<Comment:0x4603aeb0
@attributes={"body"=>"Thank you again for the welcome",
"type"=>"Comment", "post_id"=>1,
"id"=>2}>, #<SpecialComment:0x46038a84
@attributes={"body"=>"Don''t think too hard",
"type"=>"SpecialComment", "post_id"=>2,
"id"=>3}>, #<VerySpecialComment:0x4603657c
@attributes={"body"=>"Very Special type",
"type"=>"VerySpecialComment", "post_id"=>4,
"id"=>5}>, #<Comment:0x460343bc
@attributes={"body"=>"Thank you for the welcome",
"type"=>"Comment", "post_id"=>1,
"id"=>1}>, #<Comment:0x46031fcc
@attributes={"body"=>"Normal type",
"type"=>"Comment"
, "post_id"=>4, "id"=>8}>,
#<SpecialComment:0x4602fb78 @attributes={"body"=>"Special
Type!
", "type"=>"SpecialComment",
"post_id"=>5, "id"=>10}>]>.
3) Error:
test_eager_with_has_many_through_an_sti_join_model(EagerAssociationTest):
ActiveRecord::StatementInvalid: OCIError: ORA-00904:
"COMMENTS"."SPECIAL_POST_ID": invalid identifier: SELECT
authors.id AS t0_r0, authors.name AS t0_r1, authors.author_address_id AS t0_r2,
comments.id AS t1_r0, comments.post_id AS t1_r1, comments.type AS t1_r2,
comments.body AS t1_r3 FROM authors LEFT OUTER JOIN posts ON posts.author_id =
authors.id LEFT OUTER JOIN comments ON comments.special_post_id = posts.id
ORDER BY authors.id
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:128:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:243:in
`execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:449:in
`select''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:234:in
`select_all''
./test/../lib/active_record/associations.rb:1156:in
`select_all_rows''
./test/../lib/active_record/associations.rb:1013:in
`find_with_associations''
./test/../lib/active_record/associations.rb:1011:in
`find_with_associations''
./test/../lib/active_record/base.rb:992:in `find_every''
./test/../lib/active_record/base.rb:987:in `find_initial''
./test/../lib/active_record/base.rb:414:in `find''
./test/associations/eager_test.rb:116:in
`test_eager_with_has_many_through_an_sti_join_model''
4) Error:
test_eager_with_has_many_through_an_sti_join_model_with_conditions_on_both(EagerAssociationTest):
ActiveRecord::StatementInvalid: OCIError: ORA-00904:
"COMMENTS"."SPECIAL_POST_ID": invalid identifier: SELECT
authors.id AS t0_r0, authors.name AS t0_r1, authors.author_address_id AS t0_r2,
comments.id AS t1_r0, comments.post_id AS t1_r1, comments.type AS t1_r2,
comments.body AS t1_r3 FROM authors LEFT OUTER JOIN posts ON posts.author_id =
authors.id LEFT OUTER JOIN comments ON comments.special_post_id = posts.id AND
comments.post_id = 0 ORDER BY authors.id
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:128:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:243:in
`execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:449:in
`select''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:234:in
`select_all''
./test/../lib/active_record/associations.rb:1156:in
`select_all_rows''
./test/../lib/active_record/associations.rb:1013:in `find_with_associat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---