aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2016-11-09 01:13:34 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2016-11-09 01:13:34 +0900
commitf043f8092b52ded4899199e875282ac4dc93d266 (patch)
tree9113c332db8bab0bbbb528211d6eb1900c1fe1b1
parentdisable combination of libsqlite3 and trace because travis(trusty) is too old. (diff)
downloadgolite-f043f8092b52ded4899199e875282ac4dc93d266.tar.gz
golite-f043f8092b52ded4899199e875282ac4dc93d266.tar.xz
use prepare instead of Prepare
-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
}