Skip to content

Commit

Permalink
*: tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuyesuifeng committed Nov 27, 2018
1 parent 4c3f3a6 commit 72fc608
Show file tree
Hide file tree
Showing 3 changed files with 6,765 additions and 5,788 deletions.
12 changes: 4 additions & 8 deletions ast/dml.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ type TableName struct {
IndexHints []*IndexHint
}


// IndexHintType is the type for index hint use, ignore or force.
type IndexHintType int

Expand Down Expand Up @@ -155,7 +154,6 @@ type IndexHint struct {
HintScope IndexHintScope
}


// Accept implements Node Accept interface.
func (n *TableName) Accept(v Visitor) (Node, bool) {
newNode, skipChildren := v.Enter(n)
Expand Down Expand Up @@ -482,7 +480,7 @@ type SelectStmt struct {
// Limit is the limit clause.
Limit *Limit

StreamWindowSPec *StreamWindowSpec
StreamWindowSpec *StreamWindowSpec

// LockTp is the lock type
LockTp SelectLockType
Expand Down Expand Up @@ -578,12 +576,12 @@ func (n *SelectStmt) Accept(v Visitor) (Node, bool) {
n.Limit = node.(*Limit)
}

if n.StreamWindowSPec != nil {
node, ok := n.StreamWindowSPec.Accept(v)
if n.StreamWindowSpec != nil {
node, ok := n.StreamWindowSpec.Accept(v)
if !ok {
return n, false
}
n.StreamWindowSPec = node.(*StreamWindowSpec)
n.StreamWindowSpec = node.(*StreamWindowSpec)
}

return v.Leave(n)
Expand Down Expand Up @@ -1070,10 +1068,8 @@ type StreamWindowSpec struct {
Type StreamWindowType
Size uint64
Unit ExprNode

}


// Accept implements Node Accept interface.
func (n *StreamWindowSpec) Accept(v Visitor) (Node, bool) {
newNode, skipChildren := v.Enter(n)
Expand Down
Loading

0 comments on commit 72fc608

Please sign in to comment.