In my experience, Sqlite3 doesn't handle most strings well for date comparisons. It works sometimes, but not always. Postgres has treated me much better so far in this regard.
dave On Thu, Jul 2, 2009 at 12:49 PM, Scott LaBounty<[email protected]> wrote: > Jeremy, > > Here's what I'm trying: > > date = Date.new(Time.now.year,Time.now.month,Time.now.day) > today_poll = Poll.find(:date => date); > > It doesn't seem to work. Should it or am I missing something (as is usual)? > > Scott > > On Thu, Jul 2, 2009 at 9:32 AM, Jeremy Evans <[email protected]> wrote: >> >> On Jul 2, 8:19 am, Scott LaBounty <[email protected]> wrote: >> > By "Date objects", you mean a Ruby Date object, correct? If so, that >> > actually makes things easier. >> >> Yes. >> >> Jeremy >> > > > > -- > Scott > http://steamcode.blogspot.com/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
