array_ref() should set isNull to false explicitly if it's not going to

return NULL.
This commit is contained in:
Peter Eisentraut 2002-03-01 22:17:10 +00:00
parent 54f7f62d4a
commit 851f766115
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.73 2002/02/18 14:24:34 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.74 2002/03/01 22:17:10 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -812,6 +812,7 @@ array_ref(ArrayType *array,
retptr = array_seek(arraydataptr, elmlen, offset); retptr = array_seek(arraydataptr, elmlen, offset);
*isNull = false;
return ArrayCast(retptr, elmbyval, elmlen); return ArrayCast(retptr, elmbyval, elmlen);
} }