My PG syntax has a variable into an interval:

WHERE creation_date::timestamp::date > (CURRENT_DATE - interval '$1 days')::
date

Can I use a variable in Sequel as a parameter passed to this method, for 
use inside this interval integer?

Sequel.cast('? days', 30, :interval)


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/5df736c2-1ac7-4314-a030-7b07ee27b40c%40googlegroups.com.

Reply via email to