@@ -39,8 +39,6 @@ pub enum ASTNode {
39
39
SQLWildcard ,
40
40
/// Multi part identifier e.g. `myschema.dbo.mytable`
41
41
SQLCompoundIdentifier ( Vec < SQLIdent > ) ,
42
- /// Assigment e.g. `name = 'Fred'` in an UPDATE statement
43
- SQLAssignment ( SQLAssignment ) ,
44
42
/// `IS NULL` expression
45
43
SQLIsNull ( Box < ASTNode > ) ,
46
44
/// `IS NOT NULL` expression
@@ -135,7 +133,6 @@ impl ToString for ASTNode {
135
133
ASTNode :: SQLIdentifier ( s) => s. to_string ( ) ,
136
134
ASTNode :: SQLWildcard => "*" . to_string ( ) ,
137
135
ASTNode :: SQLCompoundIdentifier ( s) => s. join ( "." ) ,
138
- ASTNode :: SQLAssignment ( ass) => ass. to_string ( ) ,
139
136
ASTNode :: SQLIsNull ( ast) => format ! ( "{} IS NULL" , ast. as_ref( ) . to_string( ) ) ,
140
137
ASTNode :: SQLIsNotNull ( ast) => format ! ( "{} IS NOT NULL" , ast. as_ref( ) . to_string( ) ) ,
141
138
ASTNode :: SQLBinaryExpr { left, op, right } => format ! (
@@ -295,7 +292,6 @@ impl ToString for ASTNode {
295
292
}
296
293
297
294
/// SQL assignment `foo = expr` as used in SQLUpdate
298
- /// TODO: unify this with the ASTNode SQLAssignment
299
295
#[ derive( Debug , Clone , PartialEq ) ]
300
296
pub struct SQLAssignment {
301
297
id : String ,
0 commit comments