Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Allan Cochrane's latest activity

Thursday, April 24 2008
211 Tests seem to be broken was created in Plugins
  • Allan Cochrane
    Allan Cochrane created the ticket at 2:51 PM

    As described in the Google group, the tests seem to be broken, especially miffed abouth the #size method 'cos that buggers up some of my other plugins (e.g. so...

Friday, March 07 2008
117 Illegal MySQL in #to_sql and #to_hash was updated in Plugins
  • Allan Cochrane
    Allan Cochrane commented at 3:26 AM

    I think the issue may have been solved:

    >> Project.select{'column' == 'value'}.to_sql
    => "SELECT * FROM ProjectsDB.projects WHERE column = 'value'"
    

    which s...

199 Models derived from subclass of AR fail was created in Plugins
  • Allan Cochrane
    Allan Cochrane created the ticket at 3:20 AM

    Given:

    class ResultBaseClass < ActiveRecord::Base
    end
    
    class SysvalResult < ResultBaseClass
    end
    
    class SysvalResultAR < ActiveRecord::Base
    end
    

    then I...

Tuesday, October 09 2007
117 Illegal MySQL in #to_sql and #to_hash was updated in Plugins
  • Allan Cochrane
    Allan Cochrane commented at 4:00 PM

    On reflection, I'm not sure it's got much to do with changing table names, because that part seems to be correct:

    From script/console:

    >> Project.table_name

    ...

Friday, September 28 2007
117 Illegal MySQL in #to_sql and #to_hash was updated in Plugins
  • Allan Cochrane
    Allan Cochrane commented at 3:27 PM

    DB is MySQL.

    To illustrate:

    I'm expecting the result of

    FormalResult.find(:all, :conditions => {'module_name' =>"comfy"})

    to be the same as:

    FormalResult....

Tuesday, September 25 2007
117 Illegal MySQL in #to_sql and #to_hash was updated in Plugins
  • Allan Cochrane
    Allan Cochrane created the ticket at 10:15 AM

    in script/console I run

    >> SimulationColumn.select{'name' == "comfy"}.to_sql

    => "SELECT * FROM simcols WHERE 'name' = 'comfy'"

    (This is a legacy database, t...