Tx.QueryRow implemented in terms of Tx.Query

scan-io
Jack Christensen 2014-07-14 07:55:20 -05:00
parent 1027d2d014
commit ce3c76408e
1 changed files with 1 additions and 1 deletions

2
tx.go
View File

@ -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)
}