GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — feat: support CREATE DATABASE (#2070) by fudianchn · Pull Request #2471 · JSQLParser/JSqlParser Conversation
|
| build | ms/op |
|---|---|
master 406a4d4 |
3.734 ± 0.030 |
| this PR | 3.725 ± 0.028 |
Delta within the confidence intervals -> no regression.
Limitation: options are kept as raw tokens rather than structured AST nodes (the option sets differ heavily between MySQL and PostgreSQL); they can be modelled individually in a follow-up if preferred. The bare form CREATE DATABASE (no name) now throws a ParseException instead of returning UnsupportedStatement; both MySQL and PostgreSQL require the name.
Fixes #2070
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Parse CREATE DATABASE [IF NOT EXISTS] <name> into a typed CreateDatabase statement instead of the generic UnsupportedStatement fallback. Vendor-specific options after the name (e.g. MySQL's DEFAULT CHARACTER SET / COLLATE) are captured verbatim and round-trip unchanged. Signed-off-by: 付典 <[email protected]>
|
Thank you much! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
How to parse CREATE DATABASE DATABASE_NAME ?
There was an error while loading. Please reload this page.