[Ironruby-core] Updated Rails instructions

Shri Borde Shri.Borde at microsoft.com
Tue Jan 26 13:49:36 EST 2010


The ActiveRecord unit tests do have failures where extra 0s are appended. You can see it from the following disabled tags in Merlin\Main\Languages\Ruby\Tests\Scripts\utr\active_record_tests.rb (its not yet pushed to GIT).

    disable InheritanceTest,
      # <#<VerySpecialClient id: 780, type: nil, ruby_type: "VerySpecialClient", firm_id: nil, firm_name: nil, name: "veryspecial", client_of: nil, rating: 1>> expected but was
      # <#<VerySpecialClient id: 78, type: nil, ruby_type: "VerySpecialClient", firm_id: nil, firm_name: nil, name: "veryspecial", client_of: nil, rating: 1>>.
      #
      # diff:
      # - #<VerySpecialClient id: 780, type: nil, ruby_type: "VerySpecialClient",
      :test_alt_complex_inheritance,


    disable HasOneThroughAssociationsTest,
      # ActiveRecord::StatementInvalid: DBI::DatabaseError: Arithmetic overflow error converting expression to data type int.
      # The statement has been terminated.: INSERT INTO [memberships] ([joined_on], [club_id], [member_id], [favourite], [type]) VALUES(NULL, 1054009214000000000, 102717546000000000, 0, 'CurrentMembership')
      # abstract_adapter.rb:201:in `log'
      # sqlserver_adapter.rb:839:in `raw_execute'
      # sqlserver_adapter.rb:403:in `execute'
      :test_assigning_association_correctly_assigns_target,


From: Ivan Porto Carrero [mailto:ivan at flanders.co.nz]
Sent: Tuesday, January 26, 2010 1:09 AM
To: Jimmy Schementi
Cc: ironruby-core at rubyforge.org; Shri Borde
Subject: Re: [Ironruby-core] Updated Rails instructions

I'm not seeing that issue atm but I'll work on ironruby-sqlserver tonight.
So if Sam wants to send me a repro I can also look at the cause for his problem and hopefully fix it.
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)


On Tue, Jan 26, 2010 at 10:06 AM, Jimmy Schementi <Jimmy.Schementi at microsoft.com<mailto:Jimmy.Schementi at microsoft.com>> wrote:
I wanted to see "p @company" (equivalent of "puts @company.inspect") to see what fields it had, since ActiveRecord shows detailed view of the object, including fields. Really I want to see whether the ID is "269" or "26900".

Ivan, does this issue seem at all familiar to you?

Sam, it'd be helpful if you could produce a small repro, just with ActiveRecord alone, that shows the ID being appended with two zeros. I'd suggest using script\console as it gives you an environment preconfigured for ActiveRecord. If we have a targeted repo of the issue, it'll be easier to diagnose and fix. Ideally, you could just send me the application zipped up, but at a minimum I'll need the migration that creates the table, the model file, and whatever other code reproduces the error.

~Jimmy


> -----Original Message-----
> From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-<mailto:ironruby-core->
> bounces at rubyforge.org<mailto:bounces at rubyforge.org>] On Behalf Of Sam Clopton
> Sent: Monday, January 25, 2010 3:06 PM
> To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org>
> Subject: Re: [Ironruby-core] Updated Rails instructions
>
> Sam Clopton wrote:
>
> > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22
> > 14:33:19) [POST]
> >   Parameters:
> > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=",
> > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"},
> > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"}
> >    [4;36;1mUser Load (0.0ms) [0m    [0;1mSELECT TOP 1 * FROM [users]
> > WHERE ([users].[id] = '1')  [0m
> >    [4;35;1mEXECUTE (15.6ms) [0m    [0mBEGIN TRANSACTION [0m
> >    [4;36;1mCompany Create (46.9ms) [0m    [0;1mINSERT INTO [companies]
> > ([name], [comments]) VALUES('hmmmjjj...', 'test') [0m
> >    [4;35;1mSQL (0.0ms) [0m    [0mSELECT SCOPE_IDENTITY() AS Ident [0m
> >    [4;36;1mEXECUTE (0.0ms) [0m    [0;1mCOMMIT TRANSACTION [0m
> > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn
> > amehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate
> > #<Company:0x000263e>
> > /companies/26900
> > Redirected to http://127.0.0.1:3000/companies/26900
> >
> > *** Old Adapter ***
> >
> > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22
> > 14:30:02) [POST]
> >   Parameters:
> > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=",
> > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"},
> > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"}
> > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn
> > amehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate
> > #<Company:0x000ea44>
> > /companies/268
> > Redirected to http://127.0.0.1:3000/companies/268
> > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies]
>
> Jimmy,
>
> Do you have any suggestions or is there anything else I can do to help pin
> down this problem?
>
> Thanks,
> Sam
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
> http://rubyforge.org/mailman/listinfo/ironruby-core

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100126/c32ad812/attachment-0001.html>


More information about the Ironruby-core mailing list