dendrite/clientapi/auth
Kiril Vladimiroff 59465746bc
Always defer *sql.Rows.Close and consult with Err
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>
2020-02-06 11:27:24 +02:00
..
authtypes Associate transactions with session IDs instead of device IDs (#789) 2019-08-24 00:55:40 +08:00
storage Always defer *sql.Rows.Close and consult with Err 2020-02-06 11:27:24 +02:00
auth.go Fix pipeline, emoji and syntax (#713) 2019-06-19 14:05:03 +01:00