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

   `REVOKE bypasser FROM anon` failed with `Expected: a privilege keyword, 
found: bypasser`, since `REVOKE` only knew the privilege form. PostgreSQL 
revokes a role membership by naming the role without a keyword 
([REVOKE](https://www.postgresql.org/docs/current/sql-revoke.html)).
   
   The statement now parses into a new `Statement::RevokeRole` with `GRANTED 
BY` and `CASCADE` or `RESTRICT`. It goes through the same privilege-first 
fallback as the role membership `GRANT`, so existing statements and their 
errors are 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]

Reply via email to