@@ -33,13 +33,13 @@ use super::{
3333 AttachedToken , BeginEndStatements , CaseStatement , CloseCursor , ClusteredIndex , ColumnDef ,
3434 ColumnOption , ColumnOptionDef , ConditionalStatementBlock , ConditionalStatements ,
3535 ConflictTarget , ConnectByKind , ConstraintCharacteristics , CopySource , CreateIndex , CreateTable ,
36- CreateTableOptions , Cte , Delete , DoUpdate , ExceptSelectItem , ExcludeConstraintElement ,
37- ExcludeSelectItem , Expr , ExprWithAlias , Fetch , ForValues , FromTable , Function , FunctionArg ,
38- FunctionArgExpr , FunctionArgumentClause , FunctionArgumentList , FunctionArguments , GroupByExpr ,
39- HavingBound , IfStatement , IlikeSelectItem , IndexColumn , Insert , Interpolate , InterpolateExpr ,
40- Join , JoinConstraint , JoinOperator , JsonPath , JsonPathElem , LateralView , LimitClause ,
41- MatchRecognizePattern , Measure , Merge , MergeAction , MergeClause , MergeInsertExpr ,
42- MergeInsertKind , MergeUpdateExpr , MergeUpdateKind , NamedParenthesizedList ,
36+ CreateTableOptions , Cte , Delete , DoUpdate , DropRule , ExceptSelectItem ,
37+ ExcludeConstraintElement , ExcludeSelectItem , Expr , ExprWithAlias , Fetch , ForValues , FromTable ,
38+ Function , FunctionArg , FunctionArgExpr , FunctionArgumentClause , FunctionArgumentList ,
39+ FunctionArguments , GroupByExpr , HavingBound , IfStatement , IlikeSelectItem , IndexColumn , Insert ,
40+ Interpolate , InterpolateExpr , Join , JoinConstraint , JoinOperator , JsonPath , JsonPathElem ,
41+ LateralView , LimitClause , MatchRecognizePattern , Measure , Merge , MergeAction , MergeClause ,
42+ MergeInsertExpr , MergeInsertKind , MergeUpdateExpr , MergeUpdateKind , NamedParenthesizedList ,
4343 NamedWindowDefinition , ObjectName , ObjectNamePart , Offset , OnConflict , OnConflictAction ,
4444 OnInsert , OpenStatement , OrderBy , OrderByExpr , OrderByKind , OutputClause , Parens , Partition ,
4545 PartitionBoundValue , PivotValueSource , ProjectionSelect , Query , RaiseStatement ,
@@ -490,7 +490,7 @@ impl Spanned for Statement {
490490 Statement :: AlterPolicy { .. } => Span :: empty ( ) ,
491491 Statement :: AlterConnector { .. } => Span :: empty ( ) ,
492492 Statement :: DropPolicy { .. } => Span :: empty ( ) ,
493- Statement :: DropRule { .. } => Span :: empty ( ) ,
493+ Statement :: DropRule ( rule ) => rule . span ( ) ,
494494 Statement :: DropConnector { .. } => Span :: empty ( ) ,
495495 Statement :: ShowCatalogs { .. } => Span :: empty ( ) ,
496496 Statement :: ShowDatabases { .. } => Span :: empty ( ) ,
@@ -529,6 +529,12 @@ impl Spanned for Statement {
529529 }
530530}
531531
532+ impl Spanned for DropRule {
533+ fn span ( & self ) -> Span {
534+ self . name . span . union ( & self . table_name . span ( ) )
535+ }
536+ }
537+
532538impl Spanned for Use {
533539 fn span ( & self ) -> Span {
534540 match self {
0 commit comments