Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ func (c *Constraint) End() token.Position { return c.Position }

// EngineClause represents an ENGINE clause.
type EngineClause struct {
Position token.Position `json:"-"`
Name string `json:"name"`
Parameters []Expression `json:"parameters,omitempty"`
Position token.Position `json:"-"`
Name string `json:"name"`
Parameters []Expression `json:"parameters,omitempty"`
HasParentheses bool `json:"has_parentheses,omitempty"` // true if called with ()
}

func (e *EngineClause) Pos() token.Position { return e.Position }
Expand Down Expand Up @@ -781,10 +782,11 @@ func (w *WhenClause) End() token.Position { return w.Position }

// CastExpr represents a CAST expression.
type CastExpr struct {
Position token.Position `json:"-"`
Expr Expression `json:"expr"`
Type *DataType `json:"type"`
Alias string `json:"alias,omitempty"`
Position token.Position `json:"-"`
Expr Expression `json:"expr"`
Type *DataType `json:"type"`
Alias string `json:"alias,omitempty"`
OperatorSyntax bool `json:"operator_syntax,omitempty"` // true if using :: syntax
}

func (c *CastExpr) Pos() token.Position { return c.Position }
Expand Down
Loading