★ wanayoo — archive 1999 https://github.com/JSQLParser/JSqlParser/pull/997Nouvelle recherche | Portail wanayoo
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

Support multiple lists for an IN clause #997

Merged
merged 7 commits into from Jun 20, 2020
Merged

Conversation

@AnEmortalKid
Copy link
Contributor

@AnEmortalKid AnEmortalKid commented Jun 19, 2020

Fixes #737
Fixes #953

| token=<S_CHAR_LITERAL> { rightExpression = new StringValue(token.image); }
| "(" (LOOKAHEAD(3) rightItemsList=SubSelect() | rightItemsList=SimpleExpressionList() ) ")")
(
// syntactic lookahead for a multi expression list, ie: ((a,b),(c,d))

This comment has been minimized.

@AnEmortalKid

AnEmortalKid Jun 19, 2020
Author Contributor

I read through the options for lookahead and this seemed pretty nifty: https://javacc.github.io/javacc/tutorials/lookahead.html#syntactic

This comment has been minimized.

@AnEmortalKid

AnEmortalKid Jun 19, 2020
Author Contributor

However, if the potential performance hit from this is a concern, I can try to use a LOOKAHEAD(2, "(" "(") and see how that works.

This comment has been minimized.

@AnEmortalKid

AnEmortalKid Jun 19, 2020
Author Contributor

Or a vanilla plain LOOKAHEAD(3) multiExpressionList = MultiInExpressions() also works.

@coveralls
Copy link

@coveralls coveralls commented Jun 19, 2020 •

Coverage Status

Coverage increased (+0.06%) to 83.522% when pulling e12f85f on AnEmortalKid:multi-ins into d34c885 on JSQLParser:master.

@wumpz wumpz merged commit 5de4ae5 into JSQLParser:master Jun 20, 2020
1 check passed
1 check passed
coverage/coveralls Coverage increased (+0.06%) to 83.522%
Details
@AnEmortalKid
Copy link
Contributor Author

@AnEmortalKid AnEmortalKid commented Jun 20, 2020

@wumpz thank you 👏 , I can go back through some issues and see which other ones could be closed by this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.