Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Add NOT BETWEEN SQL operator #21

Merged

Conversation

SOHELAHMED7
Copy link
Contributor

@SOHELAHMED7 SOHELAHMED7 commented May 25, 2021

In case of date related (date data type) fields such as birth_date, order_date etc

and in case of "NOT BETWEEN" SQL operator which jQuery query builder support

I am getting below error

Undefined index
not_between

Upon investigating, I found that NOT BETWEEN is missing from operators list

https://github.com/leandrogehlen/yii2-querybuilder/blob/master/Translator.php#L67

When I add

'not_between' =>      ['op' => 'NOT BETWEEN ?',   'list' => true, 'sep' => ' AND '],

the issue is fixed.

So this PR adds NOT_BETWEEN SQL operator

@leandrogehlen leandrogehlen merged commit f50ab91 into leandrogehlen:master May 25, 2021
@cebe
Copy link

cebe commented May 25, 2021

@leandrogehlen thank you for the fast merge! could you also please tag a new version?

@leandrogehlen
Copy link
Owner

@cebe the release has been tagged

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

Successfully merging this pull request may close these issues.

None yet

3 participants