Rich Cox
2007-Feb-04 18:41 UTC
Rails AR/SQLServer Unit Test: [6111] failed (getting worse)
"rick" has kicked AR/SQLServer while it was down... http://dev.rubyonrails.org/changeset/6111 ------------------------------------------------------------------------ r6111 | rick | 2007-02-04 11:33:54 -0700 (Sun, 04 Feb 2007) | 1 line fix #write_inheritable_attribute bug that crept in ------------------------------------------------------------------------ U activesupport\lib\active_support\core_ext\class\inheritable_attributes.rb Updated to revision 6111. 1) Error: test_boolean(BasicsTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/base_test.rb:913:in `test_boolean'' 2) Error: test_boolean_cast_from_string(BasicsTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/base_test.rb:925:in `test_boolean_cast_from_string'' 3) Error: test_column_name_properly_quoted(BasicsTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/base_test.rb:1130:in `test_column_name_properly_quoted'' 4) Error: test_integers_as_nil(BasicsTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/base_test.rb:75:in `test_integers_as_nil'' 5) Error: test_numeric_fields(BasicsTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/base_test.rb:1085:in `test_numeric_fields'' 6) Error: test_before_create_returning_false(CallbacksTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/../lib/active_record/timestamp.rb:33:in `create'' ./test/../lib/active_record/base.rb:1817:in `create_or_update_without_callbacks'' ./test/../lib/active_record/callbacks.rb:242:in `create_or_update'' ./test/../lib/active_record/base.rb:1573:in `save_without_validation'' ./test/../lib/active_record/validations.rb:810:in `save_without_transactions'' ./test/../lib/active_record/transactions.rb:129:in `save'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'' ./test/../lib/active_record/transactions.rb:95:in `transaction'' ./test/../lib/active_record/transactions.rb:121:in `transaction'' ./test/../lib/active_record/transactions.rb:129:in `save'' ./test/../lib/active_record/transactions.rb:141:in `rollback_active_record_state!'' ./test/../lib/active_record/transactions.rb:129:in `save'' ./test/callbacks_test.rb:357:in `test_before_create_returning_false'' 7) Error: test_default_integers(DefaultTest): TypeError: can''t modify frozen hash ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `[]='' ./test/../lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:99:in `write_inheritable_attribute'' ./test/../lib/active_record/base.rb:584:in `serialized_attributes'' ./test/../lib/active_record/base.rb:1921:in `define_read_methods'' ./test/../lib/active_record/base.rb:1919:in `each'' ./test/../lib/active_record/base.rb:1919:in `define_read_methods'' ./test/../lib/active_record/base.rb:1876:in `method_missing'' ./test/defaults_test.rb:52:in `test_default_integers'' 8) Error: test_limited_eager_with_multiple_order_columns(EagerAssociationTest): ActiveRecord::StatementInvalid: DBI::DatabaseError: Execute OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server ORDER BY items must appear in the select list if SELECT DISTINCT is specified. HRESULT error code:0x80020009 Exception occurred.: SELECT * FROM (SELECT TOP 2 * FROM (SELECT DISTINCT TOP 3 posts.id FROM posts LEFT OUTER JOIN authors ON authors.id = posts.author_id LEFT OUTER JOIN comments ON comments.post_id = posts.id WHERE (authors.name = ''David'') ORDER BY UPPER(posts.title), posts.id) AS tmp1 ORDER BY title DESC, id DESC) AS tmp2 ORDER BY title, id ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'' ./test/../lib/active_record/connection_adapters/sqlserver_adapter.rb:318:in `execute'' ./test/../lib/active_record/connection_adapters/sqlserver_adapter.rb:507:in `select'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all'' ./test/../lib/active_record/associations.rb:1255:in `select_limited_ids_list'' ./test/../lib/active_record/associations.rb:1247:in `add_limited_ids_condition!'' ./test/../lib/active_record/associations.rb:1235:in `construct_finder_sql_with_included_associations'' ./test/../lib/active_record/associations.rb:1223:in `select_all_rows'' ./test/../lib/active_record/associations.rb:1079:in `find_with_associations'' ./test/../lib/active_record/associations.rb:1077:in `catch'' ./test/../lib/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---