Skip to content

Commit dcc656a

Browse files
committed
🐛 Remove reduce/reduce conflicts in the parser
1 parent 48c8c09 commit dcc656a

File tree

6 files changed

+355318
-358307
lines changed

6 files changed

+355318
-358307
lines changed

other/sqlparser/ast.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ type (
534534
OptLike *OptLike
535535
Comments *ParsedComments
536536
FullyParsed bool
537+
Select SelectStatement
537538
}
538539

539540
// CreateView represents a CREATE VIEW query

other/sqlparser/ast_format.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,9 @@ func (node *CreateTable) Format(buf *TrackedBuffer) {
22832283
if node.TableSpec != nil {
22842284
buf.astPrintf(node, " %v", node.TableSpec)
22852285
}
2286+
if node.Select != nil {
2287+
buf.astPrintf(node, " as %v", node.Select)
2288+
}
22862289
}
22872290

22882291
// Format formats the node.

other/sqlparser/ast_format_fast.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)