-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add postgress nested with clause #361
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
Add postgress nested with clause #361
Conversation
Sorry to get here so late. Please provide only one change per Pr. It makes the review easier. I will do a squashed merge in the end. |
The |
So this can be closed, right? |
Please leave, i will try to salvage the other parts! |
Sorry, but this thing is too messy to salvage. I will close it but you can re-submit when there is any serious interest. |
@@ -1723,6 +1737,9 @@ Expression RegularCondition(): | |||
| token=<OP_MINORTHANEQUALS> { result = new MinorThanEquals(token.image); } | |||
| token=<OP_NOTEQUALSSTANDARD> { result = new NotEqualsTo(token.image); } | |||
| token=<OP_NOTEQUALSBANG> { result = new NotEqualsTo(token.image); } | |||
| token=<OP_DOUBLEAND> { result = new DoubleAnd(token.image); } | |||
| token=<OP_CONTAINS> { result = new DoubleAnd(token.image); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why create new DoubleAnd
for the tokens OP_CONTAINS
or OP_CONTAINEDBY
- sourced from https://github.com/MathewJoseph31/JSqlParser/tree/add-postgress-nested-WithClause - resolves PR #361 - remove redundant comments
Nested With Clauses, so that they can be of the form
WITH A as (
WITH B AS (
WITH C AS (
.
.
)
)
)
supported by latest DB versions, eg. postgres is not currently supported by the parser