Michael Schoen
2007-Sep-08 04:39 UTC
Rails AR/Oracle Unit Test: [7419] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down...
http://dev.rubyonrails.org/changeset/7419
------------------------------------------------------------------------
r7419 | bitsweat | 2007-09-07 21:31:26 -0700 (Fri, 07 Sep 2007) | 1 line
Explicitly require active_record/query_cache before using it.
------------------------------------------------------------------------
U activerecord/test/query_cache_test.rb
U activerecord/lib/active_record/query_cache.rb
U activerecord/lib/active_record.rb
U activerecord/CHANGELOG
U actionpack/lib/action_controller/caching.rb
U actionpack/CHANGELOG
Updated to revision 7419.
1) 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:135:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:214:in
`execute_without_counting''
./test/abstract_unit.rb:71:in `execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:514:in
`select''
./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`select_all''
./test/../lib/active_record/base.rb:438:in `find_by_sql''
./test/../lib/active_record/base.rb:999:in `find_every''
./test/../lib/active_record/base.rb:993:in `find_initial''
./test/../lib/active_record/base.rb:428:in `find''
./test/finder_test.rb:514: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''
2) Failure:
test_rename_column_with_sql_reserved_word(MigrationTest)
[./test/migration_test.rb:403:in
`test_rename_column_with_sql_reserved_word''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in
`run'']:
Exception raised:
Class: <ActiveRecord::StatementInvalid>
Message: <"OCIError: ORA-00904: : invalid identifier: ALTER TABLE people
RENAME COLUMN first_name to group">
---Backtrace---
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:135:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:214:in
`execute_without_counting''
./test/abstract_unit.rb:71:in `execute''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:400:in
`rename_column''
./test/migration_test.rb:403:in
`test_rename_column_with_sql_reserved_word''
./test/migration_test.rb:403:in
`test_rename_column_with_sql_reserved_word''
/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_cache_does_not_wrap_string_results_in_arrays(QueryCacheTest):
TypeError: allocator undefined for Float
./test/../lib/active_record/query_cache.rb:68:in `dup''
./test/../lib/active_record/query_cache.rb:68:in `cache''
./test/../lib/active_record/query_cache.rb:25:in `select_value''
./test/query_cache_test.rb:71:in
`test_cache_does_not_wrap_string_results_in_arrays''
./test/../lib/active_record/query_cache.rb:106:in `cache''
./test/query_cache_test.rb:70:in
`test_cache_does_not_wrap_string_results_in_arrays''
/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_count_queries_with_cache(QueryCacheTest):
TypeError: allocator undefined for Float
./test/../lib/active_record/query_cache.rb:68:in `dup''
./test/../lib/active_record/query_cache.rb:68:in `cache''
./test/../lib/active_record/query_cache.rb:25:in `select_value''
./test/../lib/active_record/calculations.rb:205:in
`execute_simple_calculation''
./test/../lib/active_record/calculations.rb:120:in `calculate''
./test/../lib/active_record/calculations.rb:116:in `calculate''
./test/../lib/active_record/calculations.rb:44:in `count''
./test/query_cache_test.rb:24:in `test_count_queries_with_cache''
./test/abstract_unit.rb:38:in `assert_queries''
./test/query_cache_test.rb:24:in `test_count_queries_with_cache''
./test/../lib/active_record/query_cache.rb:106:in `cache''
./test/query_cache_test.rb:23:in `test_count_queries_with_cache''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in
`run''
1084 tests, 3972 assertions, 1 failures, 3 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?hl=en
-~----------~----~----~----~------~----~------~--~---