GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exception with 'Create Domain' statements · Issue #1090 · JSQLParser/JSqlParser

Exception with 'Create Domain' statements #1090

New issue
Copy link
New issue
Copy link
Closed
#1778
Closed
Exception with 'Create Domain' statements#1090
#1778
Copy link

Description

@ghost
ghost
opened on Dec 28, 2020

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

  1. wumpz commented on Dec 30, 2020

    @wumpz
    wumpz
    on Dec 30, 2020
    Member
    More actions

    Thats right, because this statement is not supported by JSqlParser.

    PRs are welcome.

    Reacted by Jan
  2. AnEmortalKid commented on Feb 4, 2021

    @AnEmortalKid
    AnEmortalKid
    on Feb 4, 2021
    Contributor
    More actions

    @wise-coders if you want a bit of hints on how you could add this, I did something similar for view here: #977

  3. manticore-projects commented on May 17, 2023

    @manticore-projects
    manticore-projects
    on May 17, 2023
    Contributor
    More actions

    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);
  4. manticore-projects
    added a commit that references this issue on May 17, 2023

    feat: parse CREATE TRIGGER as UnsupportedStatement

    This issue will close once commit 64b0331 is merged into the 'master' branch.
    64b0331
  5. manticore-projects
    closed this as completedin 41b6fceon Jun 1, 2023
  6. manticore-projects
    closed this as completedin #1778on Jun 1, 2023
  7. manticore-projects
    added a commit that references this issue on Jun 15, 2023

    Assorted Fixes #8 (#1807)

    This issue will close once commit a815f5f is merged into the 'master' branch.
    a815f5f
  8. manticore-projects
    added a commit that references this issue on Jun 27, 2023

    Backslash Quotation of Single-Quote `'\\''` (#1813)

    This issue will close once commit c79dfff is merged into the 'master' branch.
    c79dfff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.