Skip to content
New issue

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

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

Already on GitHub? # to your account

Accept non-column first argument in between and notBetween conditions #3829

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

acontreras89
Copy link

Fixes #3624. Make between and notBetween conditions more versatile by not forcing the first argument to be a SQL wrapper.

This enables things like

between(new Date(), promotion.start, promotion.end)
between(sql`now()`, promotion.start, promotion.end)

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

Successfully merging this pull request may close these issues.

[FEATURE]: between for arbitrary values
1 participant