Pass ctx to PgConn.Prepare

pull/483/head
Jack Christensen 2019-04-20 12:06:11 -05:00
parent 0f95329c5a
commit 35a0f64876
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func (c *Conn) Prepare(ctx context.Context, name, sql string) (ps *PreparedState
}()
}
psd, err := c.pgConn.Prepare(context.TODO(), name, sql, nil)
psd, err := c.pgConn.Prepare(ctx, name, sql, nil)
if err != nil {
return nil, err
}