2
0

Add RawValues to Rows

This commit is contained in:
Jack Christensen
2019-09-10 17:58:24 -05:00
parent 4952a488f2
commit a8691a7066
3 changed files with 48 additions and 1 deletions
+5
View File
@@ -17,6 +17,7 @@ func (errRows) FieldDescriptions() []pgproto3.FieldDescription { return nil }
func (errRows) Next() bool { return false }
func (e errRows) Scan(dest ...interface{}) error { return e.err }
func (e errRows) Values() ([]interface{}, error) { return nil, e.err }
func (e errRows) RawValues() [][]byte { return nil }
type errRow struct {
err error
@@ -81,6 +82,10 @@ func (rows *poolRows) Values() ([]interface{}, error) {
return values, err
}
func (rows *poolRows) RawValues() [][]byte {
return rows.r.RawValues()
}
type poolRow struct {
r pgx.Row
c *Conn