Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit851f766

Browse files
committed
array_ref() should set isNull to false explicitly if it's not going to
return NULL.
1 parent54f7f62 commit851f766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.73 2002/02/18 14:24:34 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.74 2002/03/01 22:17:10 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -812,6 +812,7 @@ array_ref(ArrayType *array,
812812

813813
retptr=array_seek(arraydataptr,elmlen,offset);
814814

815+
*isNull= false;
815816
returnArrayCast(retptr,elmbyval,elmlen);
816817
}
817818

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp