Michael Schoen
2007-Oct-07 05:34 UTC
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7769 ------------------------------------------------------------------------ r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line MySQL: speedup date/time parsing. ------------------------------------------------------------------------ U activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb U activerecord/CHANGELOG Updated to revision 7769. 1) Failure: test_preserving_date_objects(BasicsTest) [./test/base_test.rb:387:in `test_preserving_date_objects'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: The last_read attribute should be of the Time class. <Thu, 15 Apr 2004> expected to be kind_of? <Time> but was <Date>. 2) Error: test_saves_both_date_and_time(DateTimeTest): RangeError: out of range of Time (expect between 1970-01-01 00:00:00 UTC and 2037-12-31 23:59:59, but 1807-10-06 22:33:09 PST) /usr/pkg/ruby184/lib/ruby/site_ruby/1.8/oci8.rb:983:in `to_time'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:503:in `select'' ./test/../lib/active_record/base.rb:1360:in `each_with_index'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:496:in `select'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' ./test/../lib/active_record/connection_adapters/abstract/query_cache.rb:55:in `select_all'' ./test/../lib/active_record/base.rb:439:in `find_by_sql'' ./test/../lib/active_record/base.rb:1004:in `find_every'' ./test/../lib/active_record/base.rb:1035:in `find_one'' ./test/../lib/active_record/base.rb:1021:in `find_from_ids'' ./test/../lib/active_record/base.rb:431:in `find'' ./test/date_time_test.rb:13:in `test_saves_both_date_and_time'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 3) Error: test_default_integers(DefaultTest): NoMethodError: undefined method `<'' for nil:NilClass /usr/pkg/ruby184/lib/ruby/1.8/date.rb:557:in `valid_civil?'' /usr/pkg/ruby184/lib/ruby/1.8/date.rb:1171:in `new'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:166:in `new_time'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:116:in `string_to_time'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:60:in `type_cast'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:70:in `type_cast'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:22:in `initialize'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:344:in `columns'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:331:in `columns'' ./test/../lib/active_record/base.rb:851:in `columns'' ./test/../lib/active_record/base.rb:2080:in `attributes_from_column_definition_without_lock'' ./test/../lib/active_record/locking/optimistic.rb:55:in `attributes_from_column_definition'' ./test/../lib/active_record/base.rb:1668:in `initialize'' ./test/defaults_test.rb:51:in `test_default_integers'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 4) Error: test_joins_dont_clobber_id(FinderTest): ActiveRecord::StatementInvalid: OCIError: ORA-00905: missing keyword: select * from (select raw_sql_.*, rownum raw_rnum_ from (SELECT companies.* FROM companies INNER JOIN companies AS clients ON clients.firm_id = companies.id WHERE (companies.id = 1) AND ( (companies.type = ''Firm'' ) ) ) raw_sql_ where rownum <= 1) where raw_rnum_ > 0 ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:137:in `log'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:222:in `execute_without_counting'' ./test/abstract_unit.rb:70:in `execute'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:489:in `select'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' ./test/../lib/active_record/connection_adapters/abstract/query_cache.rb:55:in `select_all'' ./test/../lib/active_record/base.rb:439:in `find_by_sql'' ./test/../lib/active_record/base.rb:1004:in `find_every'' ./test/../lib/active_record/base.rb:998:in `find_initial'' ./test/../lib/active_record/base.rb:429:in `find'' ./test/finder_test.rb:555:in `test_joins_dont_clobber_id'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 5) Error: test_select_rows(FinderTest): NotImplementedError: select_rows is an abstract method ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:34:in `select_rows'' ./test/finder_test.rb:608:in `test_select_rows'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 6) Error: test_select_values(FinderTest): NotImplementedError: select_rows is an abstract met --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---