Skip to content

Commit 5d6ff6a

Browse files
author
Alex.Mo
committed
remove Expr::ColumnPrefix
1 parent d2092d6 commit 5d6ff6a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/ast/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,16 +1049,6 @@ pub enum Expr {
10491049
/// [Databricks](https://docs.databricks.com/en/sql/language-manual/sql-ref-lambda-functions.html)
10501050
/// [DuckDb](https://duckdb.org/docs/sql/functions/lambda.html)
10511051
Lambda(LambdaFunction),
1052-
/// A ColumnPrefix used in MySQL indexes.
1053-
/// ```sql
1054-
/// CREATE INDEX ON tbl (col(10));
1055-
/// ```
1056-
///
1057-
/// [MySQL](https://dev.mysql.com/doc/refman/8.0/en/create-index.html)
1058-
ColumnPrefix {
1059-
column: Ident,
1060-
length: u64,
1061-
},
10621052
}
10631053

10641054
/// The contents inside the `[` and `]` in a subscript expression.
@@ -1827,7 +1817,6 @@ impl fmt::Display for Expr {
18271817
}
18281818
Expr::Prior(expr) => write!(f, "PRIOR {expr}"),
18291819
Expr::Lambda(lambda) => write!(f, "{lambda}"),
1830-
Expr::ColumnPrefix { column, length } => write!(f, "{column}({length})"),
18311820
}
18321821
}
18331822
}

src/ast/spans.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,6 @@ impl Spanned for Expr {
14791479
Expr::OuterJoin(expr) => expr.span(),
14801480
Expr::Prior(expr) => expr.span(),
14811481
Expr::Lambda(_) => Span::empty(),
1482-
Expr::ColumnPrefix { .. } => Span::empty(),
14831482
}
14841483
}
14851484
}

0 commit comments

Comments
 (0)