mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
database/sql.Rows.Next() makes sure to call Close only after exhausting result rows which would NOT happen when returning early from a bad Scan. Close being idempotent makes it a great candidate to get always deferred regardless of what happens later on the result set. This change also makes sure call Err() after exhausting Next() and propagate non-nil results from it as the documentation advises. Closes #764 Signed-off-by: Kiril Vladimiroff <kiril@vladimiroff.org> |
||
|---|---|---|
| .. | ||
| basecomponent | ||
| config | ||
| http | ||
| keydb | ||
| test | ||
| transactions | ||
| consumers.go | ||
| eventcontent.go | ||
| events.go | ||
| httpapi.go | ||
| log.go | ||
| partition_offset_table.go | ||
| routing.go | ||
| sql.go | ||
| types.go | ||