git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 710d90d)
C comment: mention null handling in BuildTupleFromCStrings()
Tue, 3 Apr 2018 18:01:14 +0000 (14:01 -0400)
Tue, 3 Apr 2018 18:01:14 +0000 (14:01 -0400)
Discussion: https://postgr.es/m/CAFjFpRcF-wNbe0w-m3NpkEwr9shmOZ=GoESOzd2Wog9h55J8sA@mail.gmail.com

Author: Ashutosh Bapat


diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c
index ea06aeedb210917365d81bce9620f5813f3b55b3..d14bf2ad69437c18a45ddf2489057c0b0edfcab9 100644 (file)
--- a/src/backend/executor/execTuples.c
+++ b/src/backend/executor/execTuples.c
@@ -1204,7 +1204,10 @@ BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values)
dvalues = (Datum *) palloc(natts * sizeof(Datum));
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++)
{
if (!TupleDescAttr(tupdesc, i)->attisdropped)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /