Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FEATURE] I want to keep the comments #2017

Closed
@RudolphLiu

Description

SQL Example

 @Test
 public void test4() throws ParseException, JSQLParserException {
 String orginalSql = "SELECT * FROM PMS_ROLE_SCALE where ROLE_ID= ? /*if*/\n" +
 " and code_id= ? /*if*/ \n" +
 "/*if*/\n" +
 " and SCALE_FLAG=?/*if*/\n" +
 "/*if*/\n" +
 " and PMS_TYPE=?/*if*/";
 Statement statement = CCJSqlParserUtil.parse(orginalSql);
 String parsedSql = statement.toString();
 log.info("==> JsqlParser SQL: {}", parsedSql);
 }

I want to keep the comments

I use these comments as placeholders. Since I want to replace these comments after Jsqlparser finishes parsing, I hope that they can still be retained after parsing.

Is there any way to use it? Or is there a better solution?

Also,JSqlParser is a near-perfect work. I often use it in my projects and I love it very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /