mirror of
https://github.com/jackc/pgx.git
synced 2025-05-24 16:29:54 +00:00
Fix two minor grammatical errors in source documentation
This commit is contained in:
parent
bd37aaaa6a
commit
41b714110a
2
conn.go
2
conn.go
@ -1043,7 +1043,7 @@ func (c *Conn) Prepare(name, sql string) (ps *PreparedStatement, err error) {
|
||||
|
||||
// PrepareEx creates a prepared statement with name and sql. sql can contain placeholders
|
||||
// for bound parameters. These placeholders are referenced positional as $1, $2, etc.
|
||||
// It defers from Prepare as it allows additional options (such as parameter OIDs) to be passed via struct
|
||||
// It differs from Prepare as it allows additional options (such as parameter OIDs) to be passed via struct
|
||||
//
|
||||
// PrepareEx is idempotent; i.e. it is safe to call PrepareEx multiple times with the same
|
||||
// name and sql arguments. This allows a code path to PrepareEx and Query/Exec without
|
||||
|
@ -449,7 +449,7 @@ func (p *ConnPool) Prepare(name, sql string) (*PreparedStatement, error) {
|
||||
//
|
||||
// PrepareEx creates a prepared statement with name and sql. sql can contain placeholders
|
||||
// for bound parameters. These placeholders are referenced positional as $1, $2, etc.
|
||||
// It defers from Prepare as it allows additional options (such as parameter OIDs) to be passed via struct
|
||||
// It differs from Prepare as it allows additional options (such as parameter OIDs) to be passed via struct
|
||||
//
|
||||
// PrepareEx is idempotent; i.e. it is safe to call PrepareEx multiple times with the same
|
||||
// name and sql arguments. This allows a code path to PrepareEx and Query/Exec/Prepare without
|
||||
|
Loading…
x
Reference in New Issue
Block a user