★ wanayoo — archive 1999 https://github.com/JSQLParser/JSqlParser/issues/939Nouvelle 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

When SQL query contains an IN operator with multi-column expressions JSQLParserException is thrown #939

Closed
meelistolk opened this issue Jan 30, 2020 · 3 comments

Comments

@meelistolk
Copy link

@meelistolk meelistolk commented Jan 30, 2020

Describe the bug
When SQL query contains an IN operator with multi-column expressions (made with row constructors) and the query is parsed with CCJSqlParserUtil.parseStatements(sql) the parse method throws JSQLParserException.

To Reproduce
Steps to reproduce the behavior:

  1. Oracle query:
    select code,name
    from users
    where (code,name) in ((1,'name1'),(86,'name2'))
  2. CCJSqlParserUtil.parseStatements(sql).getStatements();
  3. JSQLParserException is thrown

Expected behavior
This query should be parseable and should not throw an exception

System

  • Oracle DB
  • Java Version 11
  • JSqlParser version 3.1
@jerryleooo
Copy link

@jerryleooo jerryleooo commented Feb 25, 2020

Is JSqlParser supporting customized syntax? If so maybe we can support it by ourselves @wumpz

@jerryleooo
Copy link

@jerryleooo jerryleooo commented Feb 26, 2020

@AnEmortalKid
Copy link
Contributor

@AnEmortalKid AnEmortalKid commented Jun 21, 2020

@wumpz this is now fixed by #997

@wumpz wumpz closed this Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.