On Monday, January 20, 2020 at 11:53:45 AM UTC-8, BeeRich33 wrote: > > OK, it was apparently working for me somehow. Anyway, in Sequel, is this > the proper sequence for a var placeholder? It works but I'm confused about > the *:interval* casting type, and its position within that Sequel.cast: > > where(Sequel.cast(:login_date, Date) > Sequel.cast(Sequel::CURRENT_DATE - > Sequel.cast((? 'days', 30) :interval), Date)) > > > where(Sequel.cast(:login_date, Date) > Sequel.cast(Sequel::CURRENT_DATE - Sequel.cast(Sequel.lit("'? days'", 30), :interval), Date)) or:
.where(Sequel.cast(:login_date,Date) > (Sequel::CURRENT_DATE - (Sequel[30.to_s] + ' days').cast(:interval)).cast(Date)) Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/35d516fe-ca17-47b1-bcce-8cc779d3ba7d%40googlegroups.com.