~emersion/soju-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Explicitly close connection to SQLite on failed upgrade

Details
Message ID
<20210913145941.19287-1-hubert@hirtz.pm>
DKIM signature
pass
Download raw message
Patch: +1 -0
---
 db_sqlite.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/db_sqlite.go b/db_sqlite.go
index 58ea072..6413acc 100644
--- a/db_sqlite.go
+++ b/db_sqlite.go
@@ -150,6 +150,7 @@ func OpenSqliteDB(driver, source string) (Database, error) {

	db := &SqliteDB{db: sqlSqliteDB}
	if err := db.upgrade(); err != nil {
		sqlSqliteDB.Close()
		return nil, err
	}

-- 
2.33.0
Details
Message ID
<h8VQ-tJsVCerlZitA6ltkNn_fNbfvyPFNkiUTPmfB_R7K9qR7GLmec96lFJn5cx8OjkgLGO5gaPLd_wf9s9bS6G0cGPMPs39t4KRtY_FJJQ=@emersion.fr>
In-Reply-To
<20210913145941.19287-1-hubert@hirtz.pm> (view parent)
DKIM signature
pass
Download raw message
Pushed, thanks!
Reply to thread Export thread (mbox)