fix a thinko
authorAndrew Dunstan <[email protected]>
Tue, 25 Feb 2014 20:28:26 +0000 (15:28 -0500)
committerAndrew Dunstan <[email protected]>
Tue, 25 Feb 2014 20:28:26 +0000 (15:28 -0500)
src/backend/utils/adt/jsonb.c

index 04bca976ecea0c0dd8b9e07abe0e96bddfe695c9..a9f05ea4e35026496ec9cc8b4847bd45f38e87b9 100644 (file)
@@ -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)