From: Andrew Dunstan Date: Tue, 25 Feb 2014 20:28:26 +0000 (-0500) Subject: fix a thinko X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b2956089755bcc7eb75171ecf8c751d627f53bcd;p=users%2Fandresfreund%2Fpostgres.git fix a thinko --- diff --git a/src/backend/utils/adt/jsonb.c b/src/backend/utils/adt/jsonb.c index 04bca976ec..a9f05ea4e3 100644 --- a/src/backend/utils/adt/jsonb.c +++ b/src/backend/utils/adt/jsonb.c @@ -185,7 +185,7 @@ Datum jsonb_recv(PG_FUNCTION_ARGS) { StringInfo buf = (StringInfo) PG_GETARG_POINTER(0); - int version = pq_getint(buf, 1); + int version = pq_getmsgint(buf, 1); text *result; if (version == 1)