mirror of https://github.com/jackc/pgx.git
Pass ctx to PgConn.Prepare
parent
0f95329c5a
commit
35a0f64876
2
conn.go
2
conn.go
|
@ -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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue