You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code seems to cause sqlrows to panic:
rows, err:=db.Query(a, b, c)
iferr!=nil {
returnerr
}
func() {
deferrows.Close()
// read from rows...
}()
After digging in some, it seems that the deferred rows.Close() call inside of the closure is dereferencing the *sql.Rows value, because it comes out as an *ssa.UnOp instead of an *ssa.Extract.
The text was updated successfully, but these errors were encountered:
The following code seems to cause
sqlrows
to panic:After digging in some, it seems that the deferred
rows.Close()
call inside of the closure is dereferencing the*sql.Rows
value, because it comes out as an*ssa.UnOp
instead of an*ssa.Extract
.The text was updated successfully, but these errors were encountered: