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

Commit242408d

Browse files
committed
C comment: mention null handling in BuildTupleFromCStrings()
Discussion:https://postgr.es/m/CAFjFpRcF-wNbe0w-m3NpkEwr9shmOZ=GoESOzd2Wog9h55J8sA@mail.gmail.comAuthor: Ashutosh Bapat
1 parent710d90d commit242408d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/executor/execTuples.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,10 @@ BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values)
12041204
dvalues= (Datum*)palloc(natts*sizeof(Datum));
12051205
nulls= (bool*)palloc(natts*sizeof(bool));
12061206

1207-
/* Call the "in" function for each non-dropped attribute */
1207+
/*
1208+
* Call the "in" function for each non-dropped attribute, even for nulls,
1209+
* to support domains.
1210+
*/
12081211
for (i=0;i<natts;i++)
12091212
{
12101213
if (!TupleDescAttr(tupdesc,i)->attisdropped)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp