Skip to content

Commit

Permalink
simplify logic
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Dec 20, 2024
1 parent eb58df1 commit 1c2be73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/vt/vtgate/scatter_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,7 @@ func (stc *ScatterConn) StreamExecuteMulti(
opts = session.Session.Options
}

if opts != nil {
opts.FetchLastInsertId = fetchLastInsertID
} else if fetchLastInsertID {
if opts == nil && fetchLastInsertID {
opts = &querypb.ExecuteOptions{FetchLastInsertId: fetchLastInsertID}
}

Expand Down

0 comments on commit 1c2be73

Please sign in to comment.