Skip to content

Commit

Permalink
create all necessary maps
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Oct 9, 2021
1 parent 412c4ab commit 25767ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/vt/vtgate/semantics/semantic_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ func (st *SemTable) CopyDependencies(from, to sqlparser.Expr) {

// NewSemTable creates a new empty SemTable
func NewSemTable() *SemTable {
return &SemTable{Recursive: map[sqlparser.Expr]TableSet{}, ColumnEqualities: map[columnName][]sqlparser.Expr{}}
return &SemTable{
Recursive: map[sqlparser.Expr]TableSet{},
Direct: map[sqlparser.Expr]TableSet{},
ColumnEqualities: map[columnName][]sqlparser.Expr{},
}
}

// TableSetFor returns the bitmask for this particular table
Expand Down

0 comments on commit 25767ce

Please sign in to comment.