-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
multiple columns IN operation is not support #737
Comments
My first guess is, that this multivalue statement is not supported. (c1, c2) in (select c1, c2 from ...) should work. |
I think this is standard syntax and should be supported |
Do you want to contribute? PRs are welcome. |
@wumpz thanks for your great project first! I also encounter this issue and I tried define a function We have our own AST so there are spaces for us to perform. Do you have any advices to solve this? For example a specific syntax and so on. |
I have solved this by define a |
we also encountered |
I think @wumpz 's guess was correct, the problem starts at the
Comparing it with a standard
I noticed that there's a
The grammar for |
Took a preliminary stab at this on the weekend:
Parses as a SimpleExpressionList (on the right). The tricky bit is with the right part, at least:
I think for that we need to have at least a (3) look ahead and look for something like:
Got some conflict productions while trying that but i might be on the right track. |
I have a little bit more working over here: https://github.com/AnEmortalKid/JSqlParser/blob/multi-ins/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L2563
Can print out:
I might need some of @wumpz 's knowledge on javacc since some of the SelectTests now seem to be failing, even though I thought my |
Hi :
i used JSqlParser - version 1.4
for example:
// mysql
select * from a where (c1,c2) IN ((1,2),(3,4))
The text was updated successfully, but these errors were encountered: