summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/sqlite/sqlite.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-05-07 13:52:37 +0000
committerLibravatar GitHub <noreply@github.com>2024-05-07 14:52:37 +0100
commitf24ce34c3a3d9d6519a52699e0761cf690b18196 (patch)
tree37dfa531588f626ac7a0813edc1d380cd6ca6696 /vendor/modernc.org/sqlite/sqlite.go
parentupdate the total ratios calculation to include ALL caches (previously was mis... (diff)
downloadgotosocial-f24ce34c3a3d9d6519a52699e0761cf690b18196.tar.xz
bump modernc.org/sqlite v1.29.8 -> v1.29.9 (concurrency workaround) (#2906)
Diffstat (limited to 'vendor/modernc.org/sqlite/sqlite.go')
-rw-r--r--vendor/modernc.org/sqlite/sqlite.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/modernc.org/sqlite/sqlite.go b/vendor/modernc.org/sqlite/sqlite.go
index e457a79bf..a785c6af9 100644
--- a/vendor/modernc.org/sqlite/sqlite.go
+++ b/vendor/modernc.org/sqlite/sqlite.go
@@ -701,7 +701,7 @@ type tx struct {
c *conn
}
-func newTx(c *conn, opts driver.TxOptions) (*tx, error) {
+func newTx(ctx context.Context, c *conn, opts driver.TxOptions) (*tx, error) {
r := &tx{c: c}
sql := "begin"
@@ -709,7 +709,7 @@ func newTx(c *conn, opts driver.TxOptions) (*tx, error) {
sql = "begin " + c.beginMode
}
- if err := r.exec(context.Background(), sql); err != nil {
+ if err := r.exec(ctx, sql); err != nil {
return nil, err
}
@@ -1348,7 +1348,7 @@ func (c *conn) Begin() (dt driver.Tx, err error) {
}
func (c *conn) begin(ctx context.Context, opts driver.TxOptions) (t driver.Tx, err error) {
- return newTx(c, opts)
+ return newTx(ctx, c, opts)
}
// Close invalidates and potentially stops any current prepared statements and