mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Tx.QueryRow implemented in terms of Tx.Query
This commit is contained in:
parent
1027d2d014
commit
ce3c76408e
2
tx.go
2
tx.go
@ -114,6 +114,6 @@ func (tx *Tx) Query(sql string, args ...interface{}) (*Rows, error) {
|
|||||||
|
|
||||||
// QueryRow delegates to the underlying *Conn
|
// QueryRow delegates to the underlying *Conn
|
||||||
func (tx *Tx) QueryRow(sql string, args ...interface{}) *Row {
|
func (tx *Tx) QueryRow(sql string, args ...interface{}) *Row {
|
||||||
rows, _ := tx.conn.Query(sql, args...)
|
rows, _ := tx.Query(sql, args...)
|
||||||
return (*Row)(rows)
|
return (*Row)(rows)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user