1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

array_map() needs to guard against a NULL input array. This problem

should go away in 7.1 with the new fmgr, but for 7.0.1 ...
This commit is contained in:
Tom Lane
2000-05-28 17:43:34 +00:00
parent 4b72779f7b
commit e193acd801

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.52 2000/01/26 05:57:12 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.52.2.1 2000/05/28 17:43:34 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -1309,6 +1309,10 @@ array_map(ArrayType *v,
char *p; char *p;
va_list ap; va_list ap;
/* Need to guard against NULL input array */
if (v == NULL)
return NULL;
/* Large objects not yet supported */ /* Large objects not yet supported */
if (ARR_IS_LO(v) == true) if (ARR_IS_LO(v) == true)
elog(ERROR, "array_map: large objects not supported"); elog(ERROR, "array_map: large objects not supported");