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

feat: support for IS UNKNOWN / IS NOT UNKNOWN #161

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

Conversation

markandrus
Copy link

I have been reviewing this library's support for unary operators, and I noticed that IS UNKNOWN and IS NOT UNKNOWN were not supported, so I have added support for them, along with tests.

Additionally, it was not immediately clear to me if ISNULL and NOTNULL were supported, so I added tests for them. I see from the tests that these are mapped to IS NULL and IS NOT NULL.

@@ -249,6 +249,7 @@ expr_primary
| value_keyword {% x => track(x, {type: 'keyword', keyword: toStr(x) }) %}
| %qparam {% x => track(x, { type: 'parameter', name: toStr(x[0]) }) %}
| %kw_default {% x => track(x, { type: 'default'}) %}
| %kw_unknown {% x => track(x, { type: 'unknown' }) %}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not completely sure if this should be here.

, "UNKNOWN"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not completely sure if this should be here.

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

Successfully merging this pull request may close these issues.

None yet

1 participant