From: Pavan Deolasee Date: Tue, 6 Sep 2016 05:29:55 +0000 (+0530) Subject: Revert a change accidentally got checked in during merge bbf2fec2. Regressions X-Git-Tag: XL9_5_R1_4~17 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=263958711ed6605132e3a1c0e9073abb82cd8ed4;p=postgres-xl.git Revert a change accidentally got checked in during merge bbf2fec2. Regressions show no additional failures. Thanks Tomas Vondra for spotting this. --- diff --git a/src/backend/utils/adt/datum.c b/src/backend/utils/adt/datum.c index 4b4974b5ca..e8af0304c0 100644 --- a/src/backend/utils/adt/datum.c +++ b/src/backend/utils/adt/datum.c @@ -136,9 +136,6 @@ datumCopy(Datum value, bool typByVal, int typLen) /* It is a varlena datatype */ struct varlena *vl = (struct varlena *) DatumGetPointer(value); - if (!vl) - return PointerGetDatum(NULL); - if (VARATT_IS_EXTERNAL_EXPANDED(vl)) { /* Flatten into the caller's memory context */