Replies: 1 comment
-
You likely want check { Sequel.function(:date_part, 'day', Sequel.lit('month')) =~ '1' } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
after scratching my head a couple hours a wonder what is the sequel way to do this SQL definition:
CREATE TABLE X (
month date CHECK ( date_part('day'. month) = '1'))
this: check { Sequel.function(:date_part, 'day', Sequel.lit('month')) == '1'}
evaluates to: check (false)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions