"david" made AR/Oracle cry... http://dev.rubyonrails.org/changeset/4354 ------------------------------------------------------------------------ r4354 | david | 2006-05-21 12:17:37 -0700 (Sun, 21 May 2006) | 1 line Fixed that has_many collections shouldn''t load the entire association to do build or create [DHH] ------------------------------------------------------------------------ U activerecord/test/associations_test.rb U activerecord/lib/active_record/associations/association_collection.rb U activerecord/lib/active_record/associations/has_many_association.rb U activerecord/CHANGELOG Updated to revision 4354. 1) Failure: test_build_without_loading_association(HasManyAssociationsTest) [./test/associations_test.rb:519]: <1> expected but was <0>. 881 tests, 3095 assertions, 1 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)
Michael Schoen wrote:> "david" made AR/Oracle cry... > > http://dev.rubyonrails.org/changeset/4354Issue here is just that :first isn''t returning a specific record, there''s no default order by for Oracle. Can you fix by changing this to either #find(id), or add :order => "id"?
David Heinemeier Hansson
2006-May-21 22:22 UTC
Re: Re: Rails AR/Oracle Unit Test: [4354] failed
> Issue here is just that :first isn''t returning a specific record, > there''s no default order by for Oracle. Can you fix by changing this to > either #find(id), or add :order => "id"?My bad. Fixed. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework