Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does the parser support CREATE TYPE statements in PostgreSQL ? #1903

ngbsn started this conversation in General
Discussion options

I tried to parse this statement that creates an enum in PostgreSQL,
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');

And this is the error:

java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "CREATE" "CREATE"
 at line 1, column 1.
Was expecting one of:
 "("
 "ALTER"
 "ANALYZE"
 "CALL"
 "COMMENT"
 "COMMIT"
 "DECLARE"
 "DELETE"
 "DESCRIBE"
 "DROP"
 "EXEC"
 "EXECUTE"
 "EXPLAIN"
 "GRANT"
 "INSERT"
 "MERGE"
 "PURGE"
 "RENAME"
 "RESET"
 "ROLLBACK"
 "SAVEPOINT"
 "SET"
 "SHOW"
 "TRUNCATE"
 "UPDATE"
 "UPSERT"
 "USE"
 "VALUE"
 "VALUES"
 "WITH"
 <K_SELECT>

Would there be a plan to support CREATE TYPE ? Thank you!

You must be logged in to vote

Replies: 1 comment

Comment options

Greetings.

Would there be a plan to support CREATE TYPE ?

Only you will provide or sponsor such an implementation.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /