aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 0edb35c..fc37d20 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -421,7 +421,7 @@ func (c *SQLiteConn) Exec(query string, args []driver.Value) (driver.Result, err
func (c *SQLiteConn) exec(ctx context.Context, query string, args []namedValue) (driver.Result, error) {
start := 0
for {
- s, err := c.Prepare(query)
+ s, err := c.prepare(ctx, query)
if err != nil {
return nil, err
}
@@ -472,7 +472,7 @@ func (c *SQLiteConn) Query(query string, args []driver.Value) (driver.Rows, erro
func (c *SQLiteConn) query(ctx context.Context, query string, args []namedValue) (driver.Rows, error) {
start := 0
for {
- s, err := c.Prepare(query)
+ s, err := c.prepare(ctx, query)
if err != nil {
return nil, err
}