mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Add missing rows.Close
This commit is contained in:
parent
7dd11ac186
commit
1e7fc8c537
@ -39,6 +39,7 @@ func upJSONB(ctx context.Context, tx *sql.Tx) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
// abusing PollerID here
|
||||
var deviceData sync2.PollerID
|
||||
@ -60,6 +61,10 @@ func upJSONB(ctx context.Context, tx *sql.Tx) error {
|
||||
}
|
||||
}
|
||||
|
||||
if rows.Err() != nil {
|
||||
return rows.Err()
|
||||
}
|
||||
|
||||
_, err = tx.ExecContext(ctx, "ALTER TABLE IF EXISTS syncv3_device_data DROP COLUMN IF EXISTS data;")
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user