2
0

Move not null Oid to pgtype

In preparation to ConnInfo implementation.
This commit is contained in:
Jack Christensen
2017-03-13 21:34:38 -05:00
parent 7ec8d7b343
commit ba5f97176a
15 changed files with 162 additions and 138 deletions
+4 -2
View File
@@ -2,6 +2,8 @@ package pgx
import (
"errors"
"github.com/jackc/pgx/pgtype"
)
// ValueReader is used by the Scanner interface to decode values.
@@ -116,8 +118,8 @@ func (r *ValueReader) ReadInt64() int64 {
return r.mr.readInt64()
}
func (r *ValueReader) ReadOid() Oid {
return Oid(r.ReadUint32())
func (r *ValueReader) ReadOid() pgtype.Oid {
return pgtype.Oid(r.ReadUint32())
}
// ReadString reads count bytes and returns as string