Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.4k
[FEATURE] I want to keep the comments#2018
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
SQL ExampleI want to keep the commentsI 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. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 1 reply
-
I noticed the issuehttps://github.com/JSQLParser/JSqlParser/issues/1776 , but still can't think of a good solution |
BetaWas this translation helpful?Give feedback.
All reactions
-
Greetings! There is no direct way to access such SQL comments because they do not have clear position in the AST. Example: SELECT/*comment 1*//*comment 2*/ column1from dual; It's impossible to decide if those comments are properties of the Nodes However, there are certain work arounds:
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Thank you very much for your answer :) |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #2017 on June 11, 2024 02:20.