From b36536979b6c6c62ec43679d069a6a6739454d5d Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Fri, 28 Apr 2023 13:50:32 +0100 Subject: [PATCH] Fix reopen. --- blob.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blob.go b/blob.go index 794980e..a6dc88b 100644 --- a/blob.go +++ b/blob.go @@ -240,8 +240,8 @@ func (b *Blob) Seek(offset int64, whence int) (int64, error) { // // https://www.sqlite.org/c3ref/blob_reopen.html func (b *Blob) Reopen(row int64) error { - r := b.c.call(b.c.api.blobReopen, uint64(b.handle), uint64(row)) + err := b.c.error(b.c.call(b.c.api.blobReopen, uint64(b.handle), uint64(row))[0]) b.bytes = int64(b.c.call(b.c.api.blobBytes, uint64(b.handle))[0]) b.offset = 0 - return b.c.error(r[0]) + return err }