LucaCappelletti94 opened a new pull request, #2414: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2414
`CREATE SEQUENCE` options were parsed by a fixed chain of independent if blocks, one per option, so only a single order was accepted. `CREATE SEQUENCE s INCREMENT BY 1 START WITH 1` parsed, but `CREATE SEQUENCE s START WITH 1 INCREMENT BY 1` left the `INCREMENT` keyword unconsumed and failed with `Expected: end of statement. PostgreSQL treats these as an unordered list`. Therefore, following the same pattern we used in other methods, `parse_create_sequence_options` now loops, dispatching on whichever option keyword comes next and breaking when none matches, and rejects repeated options. Options are recorded in the order written, so Display round-trips the input unchanged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
