-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
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!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Greetings.
Would there be a plan to support CREATE TYPE ?
Only you will provide or sponsor such an implementation.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment