Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify dynamic date field? #4

Open
darkbasic opened this issue Mar 23, 2020 · 1 comment
Open

How to specify dynamic date field? #4

darkbasic opened this issue Mar 23, 2020 · 1 comment

Comments

@darkbasic
Copy link

raw(`date_part('hour', "match"."start_date") >= date_part('hour', TIMESTAMP '$1')`,
  [new Date()])

"date/time field value out of range: \"$14\""

@darkbasic
Copy link
Author

I specify that even manually formatting the date with format(minHour, 'yyyy-MM-dd HH:mm:ss X') leads to the same error, while avoiding parameters binding alltogether works perfectly (but it's not safe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant