GeezerVison is showing github.com — Exception with 'Create Domain' statements · Issue #1090 · JSQLParser/JSqlParser
Exception with 'Create Domain' statements #1090
Description
Using JSqlParser 3.2 I get an exception when parsing:
create domain TNOTIFICATION_ACTION as ENUM ('ADD', 'CHANGE', 'DEL')
Encountered unexpected token: "create" "CREATE"
at line 1, column 1.
Activity
wumpz commented on Dec 30, 2020
Thats right, because this statement is not supported by JSqlParser.
PRs are welcome.
AnEmortalKid commented on Feb 4, 2021
@wise-coders if you want a bit of hints on how you could add this, I did something similar for view here: #977
manticore-projects commented on May 17, 2023
Working around by using UnsupportedStatement, which can be assessed using Regular Expressions:
sqlStr ="create domain TNOTIFICATION_ACTION as ENUM ('ADD', 'CHANGE', 'DEL')";
Statement statement = TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
assertTrue(statement instanceof UnsupportedStatement);added a commit that references this issue
on May 17, 2023This issue will close once commit 64b0331 is merged into the 'master' branch.64b0331 added a commit that references this issue
on Jun 15, 2023This issue will close once commit a815f5f is merged into the 'master' branch.a815f5f added a commit that references this issue
on Jun 27, 2023This issue will close once commit c79dfff is merged into the 'master' branch.c79dfff
Metadata
Metadata
Development
No branches or pull requestsIssue actions