Skip to content

Commit

Permalink
dont overwrite the original SQL when inside stream context
Browse files Browse the repository at this point in the history
Signed-off-by: Arka Ganguli <arkaganguli1@gmail.com>
  • Loading branch information
arka-g committed Apr 12, 2020
1 parent 0312c30 commit 00fbb3b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion go/vt/vttablet/tabletserver/query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ func (qre *QueryExecutor) txConnExec(conn *TxConnection) (*sqltypes.Result, erro

// Stream performs a streaming query execution.
func (qre *QueryExecutor) Stream(callback func(*sqltypes.Result) error) error {
qre.logStats.OriginalSQL = qre.query
qre.logStats.PlanType = qre.plan.PlanID.String()

defer func(start time.Time) {
Expand Down

0 comments on commit 00fbb3b

Please sign in to comment.