Skip to content

Commit 7b86f5c

Browse files
committed
Remove unused ASTNode::SQLAssignment variant (3/5)
The SQLAssignment *struct* is used directly in ASTNode::SQLUpdate (will change to SQLStatement::SQLUpdate shortly).
1 parent 45a5f84 commit 7b86f5c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/sqlast/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ pub enum ASTNode {
3939
SQLWildcard,
4040
/// Multi part identifier e.g. `myschema.dbo.mytable`
4141
SQLCompoundIdentifier(Vec<SQLIdent>),
42-
/// Assigment e.g. `name = 'Fred'` in an UPDATE statement
43-
SQLAssignment(SQLAssignment),
4442
/// `IS NULL` expression
4543
SQLIsNull(Box<ASTNode>),
4644
/// `IS NOT NULL` expression
@@ -135,7 +133,6 @@ impl ToString for ASTNode {
135133
ASTNode::SQLIdentifier(s) => s.to_string(),
136134
ASTNode::SQLWildcard => "*".to_string(),
137135
ASTNode::SQLCompoundIdentifier(s) => s.join("."),
138-
ASTNode::SQLAssignment(ass) => ass.to_string(),
139136
ASTNode::SQLIsNull(ast) => format!("{} IS NULL", ast.as_ref().to_string()),
140137
ASTNode::SQLIsNotNull(ast) => format!("{} IS NOT NULL", ast.as_ref().to_string()),
141138
ASTNode::SQLBinaryExpr { left, op, right } => format!(
@@ -295,7 +292,6 @@ impl ToString for ASTNode {
295292
}
296293

297294
/// SQL assignment `foo = expr` as used in SQLUpdate
298-
/// TODO: unify this with the ASTNode SQLAssignment
299295
#[derive(Debug, Clone, PartialEq)]
300296
pub struct SQLAssignment {
301297
id: String,

0 commit comments

Comments
 (0)