I think you will need to wrap todaydate in strftime for sqlite. Away from computer to check but google ‘date arithmetic sqlite’
On Tue, 18 Sep 2018 at 6:20 am, Joe Guerra <jgue...@jginfosys.com> wrote: > I have an active record query (for my categories) that check for the date > ( .where( 'enddate > ?', todaydate )). > > Today's date get's wrapped in quotes, and it fails to produce any records, > but it's perfectly fine in postgres. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/394a0f57-7d77-4d73-82ce-fd9730bc90b3%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/394a0f57-7d77-4d73-82ce-fd9730bc90b3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzJR9hQOO-ECQ8rd2DrC0JOUmX1JzymD%3Df%3DgU0TkJA94qg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.