lei-jia-xing opened a new issue, #3054:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/3054

   `parse_create` has four copies of the same `has_modifier` guard:
   
   - `src/parser/mod.rs#L5572-L5577`      CREATE STATISTICS
   - `src/parser/mod.rs#L5600-L5605`      CREATE USER MAPPING
   - `src/parser/mod.rs#L5660-L5665`      CREATE FOREIGN TABLE
   - `src/parser/mod.rs#L5668-L5673`      CREATE FOREIGN DATA WRAPPER
   
   Proposal: extract one helper that emits a single standardized error, e.g. 
`"CREATE statement does not accept modifiers"`, and update the four assertions 
in `tests/sqlparser_postgres.rs`.


-- 
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]

Reply via email to