Michael Schoen
2007-May-29 07:30 UTC
Rails AR/Oracle Unit Test: [6889] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down...
http://dev.rubyonrails.org/changeset/6889
------------------------------------------------------------------------
r6889 | bitsweat | 2007-05-29 00:21:41 -0700 (Tue, 29 May 2007) | 1 line
SQLite, MySQL, PostgreSQL, Oracle: quote column names in column migration SQL
statements. Closes #8466.
------------------------------------------------------------------------
U activerecord/test/migration_test.rb
U activerecord/lib/active_record/connection_adapters/sqlite_adapter.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/CHANGELOG
Updated to revision 6889.
1) Failure:
test_saves_both_date_and_time(DateTimeTest)
[./test/date_time_test.rb:9:in `test_saves_both_date_and_time''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run'']:
<#<DateTime: 205735750091/86400,-7/24,0>> expected but was
<nil>.
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.4.0/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.4.0/lib/mocha/test_case_adapter.rb:19:in
`run''
---------------
1101 tests, 4118 assertions, 2 failures, 0 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
-~----------~----~----~----~------~----~------~--~---