mirror of https://github.com/jackc/pgx.git
Rows does not expose MsgReader
parent
546a2fc670
commit
70c32fadc6
6
query.go
6
query.go
|
@ -43,10 +43,6 @@ func (rows *Rows) FieldDescriptions() []FieldDescription {
|
||||||
return rows.fields
|
return rows.fields
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rows *Rows) MsgReader() *MsgReader {
|
|
||||||
return rows.mr
|
|
||||||
}
|
|
||||||
|
|
||||||
func (rows *Rows) close() {
|
func (rows *Rows) close() {
|
||||||
if rows.pool != nil {
|
if rows.pool != nil {
|
||||||
rows.pool.Release(rows.conn)
|
rows.pool.Release(rows.conn)
|
||||||
|
@ -267,7 +263,7 @@ func (rows *Rows) Values() ([]interface{}, error) {
|
||||||
// if it is not an intrinsic type then return the text
|
// if it is not an intrinsic type then return the text
|
||||||
switch fd.FormatCode {
|
switch fd.FormatCode {
|
||||||
case TextFormatCode:
|
case TextFormatCode:
|
||||||
values = append(values, rows.MsgReader().ReadString(size))
|
values = append(values, rows.mr.ReadString(size))
|
||||||
case BinaryFormatCode:
|
case BinaryFormatCode:
|
||||||
return nil, errors.New("Values cannot handle binary format non-intrinsic types")
|
return nil, errors.New("Values cannot handle binary format non-intrinsic types")
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue