]> granicus.if.org Git - postgresql/blobdiff - src/backend/utils/adt/arrayfuncs.c
I had overlooked the fact that some fmgr-callable functions return void
[postgresql] / src / backend / utils / adt / arrayfuncs.c
index d54a6847bd259656144cde2523f20f505ff7d7a4..aae18aa047fc464691589be7b2911d844a43f847 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.57 2000/06/13 07:35:03 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.58 2000/06/14 05:24:48 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -187,7 +187,7 @@ array_in(PG_FUNCTION_ARGS)
                retval = (ArrayType *) palloc(sizeof(ArrayType));
                MemSet(retval, 0, sizeof(ArrayType));
                *(int32 *) retval = sizeof(ArrayType);
-               return PointerGetDatum(retval);
+               PG_RETURN_POINTER(retval);
        }
 
        if (*p == '{')
@@ -238,7 +238,7 @@ array_in(PG_FUNCTION_ARGS)
                PG_RETURN_NULL();
        }
        pfree(string_save);
-       return PointerGetDatum(retval);
+       PG_RETURN_POINTER(retval);
 }
 
 /*-----------------------------------------------------------------------------
@@ -622,9 +622,6 @@ array_out(PG_FUNCTION_ARGS)
        int                     ndim,
                           *dim;
 
-       if (v == (ArrayType *) NULL)
-               PG_RETURN_CSTRING((char *) NULL);
-
        if (ARR_IS_LO(v) == true)
        {
                text       *p;