2
0

Add ctx to PrepareEx

Remove PrepareExContext
This commit is contained in:
Jack Christensen
2017-05-20 18:03:59 -05:00
parent d1fd222ca5
commit 8a7165dd98
7 changed files with 16 additions and 18 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, e
name := fmt.Sprintf("pgx_%d", c.psCount)
c.psCount++
ps, err := c.conn.PrepareExContext(ctx, name, query, nil)
ps, err := c.conn.PrepareEx(ctx, name, query, nil)
if err != nil {
return nil, err
}
@@ -311,7 +311,7 @@ func (c *Conn) QueryContext(ctx context.Context, query string, argsV []driver.Na
return nil, driver.ErrBadConn
}
ps, err := c.conn.PrepareExContext(ctx, "", query, nil)
ps, err := c.conn.PrepareEx(ctx, "", query, nil)
if err != nil {
return nil, err
}