Skip to content

Commit

Permalink
fix handling the error of QueryContext
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Sep 9, 2020
1 parent 2027d6e commit 5600829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xraysql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (conn *driverConn) QueryContext(ctx context.Context, query string, args []d
}
conn.attr.populate(ctx, query)
seg.AddError(err)
return rows, nil
return rows, err
}

func (conn *driverConn) Close() error {
Expand Down

0 comments on commit 5600829

Please sign in to comment.