Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 242408d

Browse files
committed
C comment: mention null handling in BuildTupleFromCStrings()
Discussion: https://postgr.es/m/CAFjFpRcF-wNbe0w-m3NpkEwr9shmOZ=GoESOzd2Wog9h55J8sA@mail.gmail.com Author: Ashutosh Bapat
1 parent 710d90d commit 242408d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/executor/execTuples.c

+4-1
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)