@@ -30,13 +30,14 @@ use super::{
3030 FunctionArgumentClause , FunctionArgumentList , FunctionArguments , GroupByExpr , HavingBound ,
3131 IfStatement , IlikeSelectItem , Insert , Interpolate , InterpolateExpr , Join , JoinConstraint ,
3232 JoinOperator , JsonPath , JsonPathElem , LateralView , LimitClause , MatchRecognizePattern , Measure ,
33- NamedWindowDefinition , ObjectName , ObjectNamePart , Offset , OnConflict , OnConflictAction ,
34- OnInsert , OrderBy , OrderByExpr , OrderByKind , Partition , PivotValueSource , ProjectionSelect ,
35- Query , RaiseStatement , RaiseStatementValue , ReferentialAction , RenameSelectItem ,
36- ReplaceSelectElement , ReplaceSelectItem , Select , SelectInto , SelectItem , SetExpr , SqlOption ,
37- Statement , Subscript , SymbolDefinition , TableAlias , TableAliasColumnDef , TableConstraint ,
38- TableFactor , TableObject , TableOptionsClustered , TableWithJoins , UpdateTableFromKind , Use ,
39- Value , Values , ViewColumnDef , WildcardAdditionalOptions , With , WithFill ,
33+ NamedParenthesizedList , NamedWindowDefinition , ObjectName , ObjectNamePart , Offset , OnConflict ,
34+ OnConflictAction , OnInsert , OrderBy , OrderByExpr , OrderByKind , Partition , PivotValueSource ,
35+ ProjectionSelect , Query , RaiseStatement , RaiseStatementValue , ReferentialAction ,
36+ RenameSelectItem , ReplaceSelectElement , ReplaceSelectItem , Select , SelectInto , SelectItem ,
37+ SetExpr , SqlOption , Statement , Subscript , SymbolDefinition , TableAlias , TableAliasColumnDef ,
38+ TableConstraint , TableFactor , TableObject , TableOptionsClustered , TableWithJoins ,
39+ UpdateTableFromKind , Use , Value , Values , ViewColumnDef , WildcardAdditionalOptions , With ,
40+ WithFill ,
4041} ;
4142
4243/// Given an iterator of spans, return the [Span::union] of all spans.
@@ -965,10 +966,14 @@ impl Spanned for SqlOption {
965966 } => union_spans (
966967 core:: iter:: once ( column_name. span ) . chain ( for_values. iter ( ) . map ( |i| i. span ( ) ) ) ,
967968 ) ,
968- SqlOption :: Union ( idents) => union_spans ( idents. iter ( ) . map ( |i| i. span ) ) ,
969969 SqlOption :: TableSpace ( _) => Span :: empty ( ) ,
970- SqlOption :: TableEngine ( _) => Span :: empty ( ) ,
971970 SqlOption :: Comment ( _) => Span :: empty ( ) ,
971+ SqlOption :: NamedParenthesizedList ( NamedParenthesizedList {
972+ key : name,
973+ value,
974+ parameters : values,
975+ } ) => union_spans ( core:: iter:: once ( name. span ) . chain ( values. iter ( ) . map ( |i| i. span ) ) )
976+ . union_opt ( & value. as_ref ( ) . map ( |i| i. span ) ) ,
972977 }
973978 }
974979}
0 commit comments