Update pkg/storage/unified/sql/backend.go
Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
co-authored by
Dan Cech
parent
dd383150bf
commit
a64f88b0ea
@@ -283,7 +283,7 @@ func (b *backend) delete(ctx context.Context, event resource.WriteEvent) (int64,
|
|||||||
}
|
}
|
||||||
count, err := res.RowsAffected()
|
count, err := res.RowsAffected()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("update into resource: %w", err)
|
return fmt.Errorf("delete resource: %w", err)
|
||||||
}
|
}
|
||||||
if count == 0 {
|
if count == 0 {
|
||||||
return fmt.Errorf("no rows affected")
|
return fmt.Errorf("no rows affected")
|
||||||
|
|||||||
Reference in New Issue
Block a user