iffyio commented on code in PR #1757:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1757#discussion_r1986001377
##########
src/ast/mod.rs:
##########
@@ -2947,6 +2947,17 @@ pub enum Statement {
variables: OneOrManyWithParens<ObjectName>,
value: Vec<Expr>,
},
+
+ /// ```sql
+ /// SET <variable> = expression [, <variable> = expression]*;
+ /// ```
+ ///
+ /// Note: this is a MySQL-specific statement.
+ /// Refer to [`Dialect.supports_comma_separated_set_assignments`]
+ SetVariables {
+ variables: Vec<ObjectName>,
+ values: Vec<Expr>,
+ },
Review Comment:
ah can we merge this with `Statement::SetVariable`? Having both
`SetVariable` and `SetVariables` as different representations in the tree
doesn't seem ideal, since they're similar and some dialects might need elements
from both
--
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]