Skip to content

Commit

Permalink
Merge pull request #111 from shogo82148/fix-handling-sql-error
Browse files Browse the repository at this point in the history
fix handling the error of QueryContext
  • Loading branch information
shogo82148 authored Sep 9, 2020
2 parents 2027d6e + 5600829 commit ed9411c
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 ed9411c

Please sign in to comment.