mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
C comment: mention null handling in BuildTupleFromCStrings()
Discussion: https://postgr.es/m/CAFjFpRcF-wNbe0w-m3NpkEwr9shmOZ=GoESOzd2Wog9h55J8sA@mail.gmail.com Author: Ashutosh Bapat
This commit is contained in:
parent
710d90da1f
commit
242408dbef
@ -1204,7 +1204,10 @@ BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values)
|
|||||||
dvalues = (Datum *) palloc(natts * sizeof(Datum));
|
dvalues = (Datum *) palloc(natts * sizeof(Datum));
|
||||||
nulls = (bool *) palloc(natts * sizeof(bool));
|
nulls = (bool *) palloc(natts * sizeof(bool));
|
||||||
|
|
||||||
/* Call the "in" function for each non-dropped attribute */
|
/*
|
||||||
|
* Call the "in" function for each non-dropped attribute, even for nulls,
|
||||||
|
* to support domains.
|
||||||
|
*/
|
||||||
for (i = 0; i < natts; i++)
|
for (i = 0; i < natts; i++)
|
||||||
{
|
{
|
||||||
if (!TupleDescAttr(tupdesc, i)->attisdropped)
|
if (!TupleDescAttr(tupdesc, i)->attisdropped)
|
||||||
|
Loading…
Reference in New Issue
Block a user