use prepare instead of Prepare

This commit is contained in:
Yasuhiro Matsumoto 2016-11-09 01:13:34 +09:00
parent 599dd7631f
commit f043f8092b
1 changed files with 2 additions and 2 deletions

View File

@ -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) { func (c *SQLiteConn) exec(ctx context.Context, query string, args []namedValue) (driver.Result, error) {
start := 0 start := 0
for { for {
s, err := c.Prepare(query) s, err := c.prepare(ctx, query)
if err != nil { if err != nil {
return nil, err 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) { func (c *SQLiteConn) query(ctx context.Context, query string, args []namedValue) (driver.Rows, error) {
start := 0 start := 0
for { for {
s, err := c.Prepare(query) s, err := c.prepare(ctx, query)
if err != nil { if err != nil {
return nil, err return nil, err
} }