In a related application: date_trunc (this rounds up)
select{[:search_phrase, Sequel.function(:date_trunc(:minute, :creation_date
)).as(:creation_date), :search_type, :result_count]}.
That field is a timestamp, which I want to round up to the minute. I'm
thinking it's a PostgreSQL function, so I tried to apply it as above for
this SQL:
date_trunc('minute', creation_date)
It's not a cast...is it?
--
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/5cd5e31f-4208-48a2-9463-dc262efd7f05%40googlegroups.com.