Skip to content

Commit 970c5bf

Browse files
Complete typed-literal regression assertion after rebase
1 parent 959036b commit 970c5bf

2 files changed

Lines changed: 22 additions & 20 deletions

File tree

‎src/ast/spans.rs‎

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,27 @@ use super::{
3333
AlterDefaultPrivileges, AlterDefaultPrivilegesOperation, DefaultPrivilegesOption,
3434
SecondaryRoles,
3535
},
36-
value::ValueWithSpan, AccessExpr, AlterColumnOperation,
37-
AlterIndexOperation, AlterTableOperation, Analyze, Array, Assignment, AssignmentTarget,
38-
AttachedToken, BeginEndStatements, CaseStatement, CloseCursor, ClusteredIndex, ColumnDef,
39-
ColumnOption, ColumnOptionDef, ConditionalStatementBlock, ConditionalStatements,
40-
ConflictTarget, ConnectByKind, ConstraintCharacteristics, CopySource, CreateIndex, CreateTable,
41-
CreateTableOptions, Cte, Delete, DoUpdate, ExceptSelectItem, ExcludeConstraintElement,
42-
ExcludeSelectItem, Expr, ExprWithAlias, Fetch, ForValues, FromTable, Function, FunctionArg,
43-
FunctionArgExpr, FunctionArgumentClause, FunctionArgumentList, FunctionArguments, GranteeName, GroupByExpr,
44-
HavingBound, IfStatement, IlikeSelectItem, InTarget, IndexColumn, Insert, Interpolate,
45-
InterpolateExpr, Join, JoinConstraint, JoinOperator, JsonPath, JsonPathElem, LateralView,
46-
LimitClause, MatchRecognizePattern, Measure, Merge, MergeAction, MergeClause, MergeInsertExpr,
47-
MergeInsertKind, MergeUpdateExpr, MergeUpdateKind, NamedParenthesizedList,
48-
NamedWindowDefinition, ObjectName, ObjectNamePart, Offset, OnConflict, OnConflictAction,
49-
OnInsert, OpenStatement, OrderBy, OrderByExpr, OrderByKind, OutputClause, Parens, Partition,
50-
PartitionBoundValue, PivotValueSource, ProjectionSelect, Query, RaiseStatement,
51-
RaiseStatementValue, ReferentialAction, RenameSelectItem, ReplaceSelectElement,
52-
ReplaceSelectItem, Select, SelectInto, SelectItem, SetExpr, Setting, SqlOption, Statement,
53-
Subscript, SymbolDefinition, TableAlias, TableAliasColumnDef, TableConstraint, TableFactor,
54-
TableObject, TableOptionsClustered, TableWithJoins, Update, UpdateTableFromKind, Use, Values,
55-
ViewColumnDef, WhileStatement, WildcardAdditionalOptions, With, WithFill,
36+
value::ValueWithSpan,
37+
AccessExpr, AlterColumnOperation, AlterIndexOperation, AlterTableOperation, Analyze, Array,
38+
Assignment, AssignmentTarget, AttachedToken, BeginEndStatements, CaseStatement, CloseCursor,
39+
ClusteredIndex, ColumnDef, ColumnOption, ColumnOptionDef, ConditionalStatementBlock,
40+
ConditionalStatements, ConflictTarget, ConnectByKind, ConstraintCharacteristics, CopySource,
41+
CreateIndex, CreateTable, CreateTableOptions, Cte, Delete, DoUpdate, ExceptSelectItem,
42+
ExcludeConstraintElement, ExcludeSelectItem, Expr, ExprWithAlias, Fetch, ForValues, FromTable,
43+
Function, FunctionArg, FunctionArgExpr, FunctionArgumentClause, FunctionArgumentList,
44+
FunctionArguments, GranteeName, GroupByExpr, HavingBound, IfStatement, IlikeSelectItem,
45+
InTarget, IndexColumn, Insert, Interpolate, InterpolateExpr, Join, JoinConstraint,
46+
JoinOperator, JsonPath, JsonPathElem, LateralView, LimitClause, MatchRecognizePattern, Measure,
47+
Merge, MergeAction, MergeClause, MergeInsertExpr, MergeInsertKind, MergeUpdateExpr,
48+
MergeUpdateKind, NamedParenthesizedList, NamedWindowDefinition, ObjectName, ObjectNamePart,
49+
Offset, OnConflict, OnConflictAction, OnInsert, OpenStatement, OrderBy, OrderByExpr,
50+
OrderByKind, OutputClause, Parens, Partition, PartitionBoundValue, PivotValueSource,
51+
ProjectionSelect, Query, RaiseStatement, RaiseStatementValue, ReferentialAction,
52+
RenameSelectItem, ReplaceSelectElement, ReplaceSelectItem, Select, SelectInto, SelectItem,
53+
SetExpr, Setting, SqlOption, Statement, Subscript, SymbolDefinition, TableAlias,
54+
TableAliasColumnDef, TableConstraint, TableFactor, TableObject, TableOptionsClustered,
55+
TableWithJoins, Update, UpdateTableFromKind, Use, Values, ViewColumnDef, WhileStatement,
56+
WildcardAdditionalOptions, With, WithFill,
5657
};
5758

5859
/// Given an iterator of spans, return the [Span::union] of all spans.

‎tests/sqlparser_postgres.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10263,6 +10263,7 @@ fn parse_geometric_typed_literal_error_propagates() {
1026310263
pg().parse_sql_statements("SELECT circle( FROM t")
1026410264
.unwrap_err(),
1026510265
ParserError::ParserError("Expected: a value, found: (".to_string())
10266+
);
1026610267
}
1026710268

1026810269
#[test]

0 commit comments

Comments
 (0)