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 — How to parse CREATE DATABASE DATABASE_NAME ? · Issue #2070 · JSQLParser/JSqlParser

How to parse CREATE DATABASE DATABASE_NAME ?  #2070

New issue
Copy link
New issue
Copy link
Closed
#2471
Closed
How to parse CREATE DATABASE DATABASE_NAME ? #2070
#2471
Copy link
Labels
DDLDDL statement relatedDDL statement relatedSponsor needed

Description

@ganesh-akashh
ganesh-akashh
opened on Sep 6, 2024
Issue body actions

package org.example;

import net.sf.jsqlparser.parser.CCJSqlParser;
import net.sf.jsqlparser.parser.CCJSqlParserUtil;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.Statements;

class Main {

public static void main(String[] args) {
   
    try {
        String sqlStr = "CREATE DATABASE USERS; ";
        Statement statement=CCJSqlParserUtil.parse(sqlStr);


    } catch (Exception e) {
        System.out.println(e.getMessage());
    }


}

}

Activity

  1. manticore-projects
    added
    DDLDDL statement relatedDDL statement related
    Sponsor needed
    on Sep 6, 2024
  2. manticore-projects commented on Sep 6, 2024

    @manticore-projects
    manticore-projects
    on Sep 6, 2024
    Contributor
    More actions

    I just double checked that Grammar: there is indeed no support yet for CREATE DATABASE ...
    PRs are welcome.

  3. ganesh-akashh commented on Sep 9, 2024

    @ganesh-akashh
    ganesh-akashh
    on Sep 9, 2024
    Author
    More actions

    Can you share a user guide on how to introduce new features ?

  4. ganesh-akashh
    closed this as completedon Sep 9, 2024
  5. ganesh-akashh
    reopened this on Sep 9, 2024
  6. manticore-projects commented on Sep 9, 2024

    @manticore-projects
    manticore-projects
    on Sep 9, 2024
    Contributor
    More actions

    Greetings!

    Can you share a user guide on how to introduce new features ?

    https://manticore-projects.com/JSQLParser/contribution.html

    Cheers!

  7. fudianchn commented on Aug 15, 2026

    @fudianchn
    fudianchn
    on Aug 15, 2026
    Contributor
    More actions

    PR #2471 adds a typed CreateDatabase statement: CREATE DATABASE [IF NOT EXISTS] <name> parses into CreateDatabase (with getDatabaseName()), and vendor-specific options after the name such as MySQL's DEFAULT CHARACTER SET utf8mb4 are captured verbatim and round-trip unchanged.

  8. manticore-projects
    added a commit that references this issue on Aug 16, 2026

    feat: support CREATE DATABASE statement (#2070) (#2471)

    7b64825
  9. manticore-projects
    closed this as completedin #2471on Aug 16, 2026
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

    DDLDDL statement relatedDDL statement relatedSponsor needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — 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.