Skip to content
Merged
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
2 changes: 2 additions & 0 deletions go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ func (*ValuesStatement) iSelectStatement() {}
type QueryOpts struct {
All bool
Distinct bool
DistinctOn Exprs
StraightJoinHint bool
SQLCalcFoundRows bool
SQLCache bool
Expand All @@ -519,6 +520,7 @@ type QueryOpts struct {
func (q *QueryOpts) merge(other QueryOpts) error {
q.All = q.All || other.All
q.Distinct = q.Distinct || other.Distinct
q.DistinctOn = append(q.DistinctOn, other.DistinctOn...)
q.StraightJoinHint = q.StraightJoinHint || other.StraightJoinHint
q.SQLCalcFoundRows = q.SQLCalcFoundRows || other.SQLCalcFoundRows
q.SQLCache = q.SQLCache || other.SQLCache
Expand Down