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.

Tobin's latest activity

Thursday, May 01 2008
66 True/False conditions broken for sqlite was updated in Ruby on Rails
  • Tobin
    Tobin commented at 2:05 AM

    You're correct, I created those records outside Rails. After some further testing, it is working as it should.

    Thanks for the debugging help. :)

Wednesday, April 30 2008
66 True/False conditions broken for sqlite was updated in Ruby on Rails
  • Tobin
    Tobin commented at 11:31 PM

    Hmm, that's weird, it definitely does not work for me. I'm on OS X 10.5, with SQLite 3.5.2 from MacPorts.

    $ sqlite3 development.sqlite3

    SQLite version 3.5.2...

  • Tobin
    Tobin commented at 3:18 AM

    Crap, totally screwed up my SQL. Here is the correct SQL for the Ruby code I posted.

    User.find(:all, :conditions => ['active = ?', true])
    

    Current, incorrec...

  • Tobin
    Tobin created the ticket at 3:15 AM

    The current SQLiteAdapter does not format true/false conditions correctly for queries. It is using the default quoted_true and quoted_false methods.

    The ruby...