mirror of https://github.com/jackc/pgx.git
Tx.QueryRow implemented in terms of Tx.Query
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
|
||||
func (tx *Tx) QueryRow(sql string, args ...interface{}) *Row {
|
||||
rows, _ := tx.conn.Query(sql, args...)
|
||||
rows, _ := tx.Query(sql, args...)
|
||||
return (*Row)(rows)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue