Michael Schoen
2006-Nov-01 20:34 UTC
Rails AR/Oracle Unit Test: [5384] failed (but getting better)
"bitsweat" has given AR/Oracle some love, but it''s still unhappy... http://dev.rubyonrails.org/changeset/5384 ------------------------------------------------------------------------ r5384 | bitsweat | 2006-11-01 12:28:48 -0800 (Wed, 01 Nov 2006) | 1 line Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults. Factor out some common methods from all adapters. Closes #6515. ------------------------------------------------------------------------ U activerecord/test/locking_test.rb U activerecord/test/associations_test.rb U activerecord/test/associations/eager_test.rb U activerecord/test/fixtures/db_definitions/schema.rb U activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb U activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb U activerecord/lib/active_record/connection_adapters/oracle_adapter.rb U activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb U activerecord/lib/active_record/connection_adapters/sybase_adapter.rb U activerecord/lib/active_record/connection_adapters/db2_adapter.rb U activerecord/CHANGELOG Updated to revision 5384. 1) Error: test_select_limited_ids_list(HasAndBelongsToManyAssociationsTest): ActiveRecord::StatementInvalid: OCIError: ORA-01791: not a SELECTed expression: SELECT DISTINCT projects.id FROM projects LEFT OUTER JOIN developers_projects ON developers_projects.project_id = projects.id LEFT OUTER JOIN developers ON developers.id = developers_projects.developer_id ORDER BY developers.created_at ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:222:in `execute'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:434:in `select'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all'' ./test/../lib/active_record/associations.rb:1188:in `select_limited_ids_list'' ./test/associations_test.rb:1796:in `test_select_limited_ids_list'' 984 tests, 3511 assertions, 0 failures, 1 errors rake aborted! Command failed with status (1): [/usr/pkg/ruby184/bin/ruby -Ilib:test:test/...] (See full trace by running task with --trace) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---