Jeremy, That would be my guess too (string format issue). I'm just doing this for learning / teaching purposes, so I can certainly work around it.
I think what I missed earlier is that sqlite actually stores a Date as a string (true?) and so I'll have to convert to match. In a "real" database (mySQL, etc.), passing the ruby Date class should work. Is that correct? Scott On Thu, Jul 2, 2009 at 1:26 PM, Jeremy Evans <[email protected]> wrote: > > On Jul 2, 12:28 pm, Scott LaBounty <[email protected]> wrote: > > Jeremy, > > > > Isn't that what I'm doing with this: > > > > date = Date.new(Time.now.year,Time.now.month,Time.now.day) > > today_poll = Poll.find(:date => date); > > > > that doesn't seem to work. > > That's only going to work on SQLite if the entry in the database is in > the same string format that Sequel uses. > > If you think this is a bug, please post a self contained example > showing the error and I will look into it. My guess is that the > database is storing your date in a different string format than Sequel > uses. > > 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 -~----------~----~----~----~------~----~------~--~---
