mirror of
https://github.com/postgres/postgres.git
synced 2026-04-23 23:28:01 -04:00
array_ref() should set isNull to false explicitly if it's not going to
return NULL.
This commit is contained in:
parent
54f7f62d4a
commit
851f766115
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* 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);
|
||||
|
||||
*isNull = false;
|
||||
return ArrayCast(retptr, elmbyval, elmlen);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue