mvzink opened a new pull request, #2181:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2181

   Add support for the PostgreSQL TRUNCATE syntax `TRUNCATE TABLE name *` which 
indicates that descendant tables should also be truncated. This is the opposite 
of the `ONLY` keyword, and Postgres doesn't allow both. We are more permissive 
when parsing it and allow both to appear.
   
   Adds a `has_asterisk` field to `TruncateTableTarget` that is set to true 
when the `*` token follows a table name. This could be called 
`include_descendants` or something more semantically meaningful, but it's kind 
of peculiar syntax, so just mirroring the syntax itself seemed less confusing.


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