Skip to content

missing error check in appendRowsBlocks #2016

Description

@cyrilou242

Observed

appendRowsBlocks may return nil even if an error happened.
in our project we use Append with blocks, so it's getting into the appendRowsBlocks codepath. We observe incomplete streams being appended without errors.

Expected behaviour

Return error if a mid-stream error happens in the appendRowsBlocks codepath.

In

func (b *batch) appendRowsBlocks(r *rows) error {

when returning after looping on r.Next()
return nil

return r.Err() instead of nil.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions