Content-Length: 263792 | pFad | http://github.com/postgrespro/postgres_cluster/commit/242408dbef283ff148a3a671a7f4ebbad6118b22

5E C comment: mention null handling in BuildTupleFromCStrings() · postgrespro/postgres_cluster@242408d · GitHub
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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/242408dbef283ff148a3a671a7f4ebbad6118b22

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy