Missed adding extra argument to array_recv in a couple of places
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Jul 2005 21:36:21 +0000 (21:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Jul 2005 21:36:21 +0000 (21:36 +0000)
(harmless, actually, but let's be tidy).

src/backend/utils/adt/int.c
src/backend/utils/adt/oid.c

index f976adbb17079f8ed10b079c8a7cc593778da43b..46e288c2761d5274642e40b079ead62cdcfa9e26 100644 (file)
@@ -215,9 +215,10 @@ int2vectorrecv(PG_FUNCTION_ARGS)
        int2vector  *result;
 
        result = (int2vector *)
-               DatumGetPointer(DirectFunctionCall2(array_recv,
+               DatumGetPointer(DirectFunctionCall3(array_recv,
                                                                                        PointerGetDatum(buf),
-                                                                                       ObjectIdGetDatum(INT2OID)));
+                                                                                       ObjectIdGetDatum(INT2OID),
+                                                                                       Int32GetDatum(-1)));
        /* sanity checks: int2vector must be 1-D, no nulls */
        if (result->ndim != 1 ||
                result->flags != 0 ||
index 6e7990978933ce79d54178ad5531c864aaeb6dc6..8525764e204b33e589417e3e0888e4d12be92198 100644 (file)
@@ -257,9 +257,10 @@ oidvectorrecv(PG_FUNCTION_ARGS)
        oidvector  *result;
 
        result = (oidvector *)
-               DatumGetPointer(DirectFunctionCall2(array_recv,
+               DatumGetPointer(DirectFunctionCall3(array_recv,
                                                                                        PointerGetDatum(buf),
-                                                                                       ObjectIdGetDatum(OIDOID)));
+                                                                                       ObjectIdGetDatum(OIDOID),
+                                                                                       Int32GetDatum(-1)));
        /* sanity checks: oidvector must be 1-D, no nulls */
        if (result->ndim != 1 ||
                result->flags != 0 ||