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

   PostgreSQL's `GRANT` and `REVOKE` take `ON ROUTINE` with the same signature 
list as `ON FUNCTION` and `ON PROCEDURE`, and cover a whole schema with `ON ALL 
PROCEDURES IN SCHEMA` and `ON ALL ROUTINES IN SCHEMA` 
(https://www.postgresql.org/docs/current/sql-grant.html). None of the three 
parsed. `GRANT EXECUTE ON ROUTINE f(int) TO bob` failed with `Expected: TO, 
found: f`, and `GRANT EXECUTE ON ALL ROUTINES IN SCHEMA s TO bob` with 
`Expected: TO, found: ROUTINES`.
   
   `GrantObjects` gains `Routines`, `AllProceduresInSchema` and 
`AllRoutinesInSchema`, next to the `Functions` and `Procedures` variants from 
#2727. A routine can be a function or a procedure, so each form keeps its own 
variant and prints back as written.


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