Commit 851f7661 authored by Peter Eisentraut's avatar Peter Eisentraut

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

return NULL.
parent 54f7f62d
...@@ -8,7 +8,7 @@ ...@@ -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, ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment