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

cannot support condition (a,b) in ((1,2),(3,4)) #953

Closed
yidu0331 opened this issue Feb 25, 2020 · 1 comment
Closed

cannot support condition (a,b) in ((1,2),(3,4)) #953

yidu0331 opened this issue Feb 25, 2020 · 1 comment

Comments

@yidu0331
Copy link

@yidu0331 yidu0331 commented Feb 25, 2020

Describe the bug
cannot support condition (a,b) in ((1,2),(3,4))

To Reproduce
Steps to reproduce the behavior:

  1. Example SQL
    SELECT
    tenant_code AS tenantCode,
    ta_code AS taCode,
    fund_code AS fundCode,
    fund_name AS fundName,
    manager_code AS managerCode,
    department_type AS departmentType
    FROM
    (
    select * from biz_fund_info
    WHERE tenant_code = ?
    and (ta_code,manager_code) IN
    (
    (?,?)
    )
    union
    select * from biz_fund_info
    WHERE tenant_code = ?
    and department_type IN
    (
    ?
    ,
    ?
    ,
    ?
    )
    ) a
  2. Parsing this SQL using JSqlParser with this statements
    Statement statement = CCJSqlParserUtil.parse(sql);
  3. Exception
    net.sf.jsqlparser.JSQLParserException: null
    at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:51) ~[jsqlparser-3.1.jar:?]
    at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:40) ~[jsqlparser-3.1.jar:?]

Expected behavior
parse successfully.
System

  • Database you are using
    oracle/mysql
  • Java Version
    1.8
  • JSqlParser version
    3.1
@AnEmortalKid
Copy link
Contributor

@AnEmortalKid AnEmortalKid commented Apr 29, 2020

Check #737 for some guidance on part of what needs changed

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.

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