Open gadgetlabs opened 1 year ago
It looks to me like the parser doesn't quite handle parsing the entire set of mysql CREATE TABLE
syntax. A fix would be most appreciated.
Thank you for the report @gadgetlabs
Apparently it works if I move the "comment" part of the parse_create_table
function at the end. SQL options can be provided in any order, so I don't think the logic is sound. I think there should be loop where the keyword is retrieved, and then a big match
statement should be used. Does that make sense?
Apparently something that looks like parse_optional_columns_option
would do the trick.
Hi,
I'm using sqlparser = "0.38.0", trying to parse the below with
However it is failing with sql parser error: Expected end of statement, found: COMMENT at Line: 1, Column 691. Is there a way to ignore anything outside the parenthesis as that is irrelevant for my usecase however I suspect this is unintended behaviour?