ramnes commented on code in PR #2015:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2015#discussion_r2316372357


##########
src/ast/mod.rs:
##########
@@ -3314,6 +3314,8 @@ pub enum Statement {
     CreateRole {
         names: Vec<ObjectName>,
         if_not_exists: bool,
+        /// Whether ROLE or USER keyword was used
+        keyword: RoleKeyword,

Review Comment:
   Yes, but as far as I understand, it's a very different syntax / semantics. 
Postgres "USER" is really just an alias for "ROLE", and Postgres semantics are 
currently handled by `CreateRole` and `AlterRole`. Which is why I just added 
the `keyword` here: it doesn't introduce any backwards compatibility. It's just 
more data to the AST for an already existing expression parsing.



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