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

Query parser's BETWEEN is a closed interval #5262

Merged
merged 1 commit into from
Feb 23, 2022
Merged

Query parser's BETWEEN is a closed interval #5262

merged 1 commit into from
Feb 23, 2022

Conversation

ironage
Copy link
Contributor

@ironage ironage commented Feb 22, 2022

This changes the behaviour of what between means in parsed queries. There might be some concern that this is a breaking change, but given that we have documented it otherwise I think it we can call it a fix.

The docs specify that BETWEEN "Evaluates to true if the left-hand numerical or date expression is between or equal to the right-hand range"

This is also the definition according to NSPredicate. Which means that this removes a discrepancy between parsed query syntax and cocoa's query syntax.

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)

@ironage ironage requested a review from jedelbo February 22, 2022 23:46
@ironage ironage self-assigned this Feb 22, 2022
@cla-bot cla-bot bot added the cla: yes label Feb 22, 2022
@jedelbo jedelbo merged commit 1a6a69a into master Feb 23, 2022
@jedelbo jedelbo deleted the js/between branch February 23, 2022 08:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants