-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
This one is more a feature request, as I don't think the parser supports this yet.
This is for the ENUM column type when the values are specified inline.
Relevant doc for MySQL and example here: https://dev.mysql.com/doc/refman/8.0/en/enum.html
parse_results = DDLParser("""CREATE TABLE shirts (
name VARCHAR(40),
size ENUM('x-small', 'small', 'medium', 'large', 'x-large')
);
""", silent=False).run(output_mode='mysql')
print(parse_results)
Gives
DDLParserError: Unknown statement at LexToken(STRING_BASE,"'x-small'",1,58)
Thanks
Metadata
Metadata
Assignees
Labels
No labels