Skip to content

Panic in valuer causes a hang with Iterator().All(&something) swallowing panic message #508

Description

@c2h5oh
type broken string

func (b broken) Value() (driver.Value, error) {
    panic("this is a broken valuer")
    return nil,nil
}

val := broken("record")

query := conn.Select("*").From("mytable").Where(db.Cond{"column_name": val})

// this will panic
_, err := query.Iterator()

var ret []*sometype

 // this will hang, no panic message will be logged
err = query.Iterator().All(&ret)

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions