2
0

MsgReader no longer uses double buffering

This commit is contained in:
Jack Christensen
2014-07-04 13:08:37 -05:00
parent 78b8e0b6f2
commit b25aea5c52
4 changed files with 243 additions and 170 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func decodePoint(qr *pgx.QueryResult, fd *pgx.FieldDescription, size int32) Poin
switch fd.FormatCode {
case pgx.TextFormatCode:
s := qr.MessageReader().ReadString(size)
s := qr.MsgReader().ReadString(size)
match := pointRegexp.FindStringSubmatch(s)
if match == nil {
qr.Fatal(pgx.ProtocolError(fmt.Sprintf("Received invalid point: %v", s)))