JSQLParser / JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
https://github.com/JSQLParser/JSqlParser/wiki
Apache License 2.0
5.3k stars 1.34k forks source link

[BUG] JSQLParser 4.7: `ADD COLUMN IF NOT EXISTS` not supported #1875

Open zdhuangelephant opened 11 months ago

zdhuangelephant commented 11 months ago

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

SQL Example:

Software Information:

Tips:

Please write in English and avoid Screenshots (as we can't copy and paste content from it). Try your example online with the latest JSQLParser and share the link in the error report. Do provide Links or References to the specific Grammar and Syntax you are trying to use.

manticore-projects commented 11 months ago

Greetings,

the IF NOT EXISTS clause is not supported for ADD COLUMN.

You can try it online here.

Reference to the supported SQL Syntax.

In my opinion all the DDL statements deserve a proper refactoring and we are looking for Sponsors or Volunteers.

zdhuangelephant commented 11 months ago

thank you for your time to reply this question. the volunteers? it's excited when i as a committer

manticore-projects commented 11 months ago

the volunteers? it's excited when i as a committer

Please follow the guide: https://manticore-projects.com/JSQLParser/contribution.html We will be most excited to welcome you as a new contributor. Fell very welcome to ask any questions.

jxnu-liguobin commented 7 months ago

Seems to require refactoring for add alter modify drop column