mirror of
https://github.com/jackc/pgx.git
synced 2025-07-11 04:58:20 +00:00
Rows does not expose MsgReader
This commit is contained in:
parent
546a2fc670
commit
70c32fadc6
6
query.go
6
query.go
@ -43,10 +43,6 @@ func (rows *Rows) FieldDescriptions() []FieldDescription {
|
||||
return rows.fields
|
||||
}
|
||||
|
||||
func (rows *Rows) MsgReader() *MsgReader {
|
||||
return rows.mr
|
||||
}
|
||||
|
||||
func (rows *Rows) close() {
|
||||
if rows.pool != nil {
|
||||
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
|
||||
switch fd.FormatCode {
|
||||
case TextFormatCode:
|
||||
values = append(values, rows.MsgReader().ReadString(size))
|
||||
values = append(values, rows.mr.ReadString(size))
|
||||
case BinaryFormatCode:
|
||||
return nil, errors.New("Values cannot handle binary format non-intrinsic types")
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user