From: Teodor Sigaev Date: Tue, 10 Sep 2013 08:53:01 +0000 (+0400) Subject: fix wrong check of attbyval X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=1d76528154125e3a76b2d24c8b0b69c08436ee39;p=gevel.git fix wrong check of attbyval --- diff --git a/gevel.c b/gevel.c index fe2f896..0715710 100644 --- a/gevel.c +++ b/gevel.c @@ -1169,13 +1169,13 @@ next: *tid = node->t_tid; prst->dvalues[3] = PointerGetDatum(tid); prst->nulls[3] = ' '; - if (prst->state.attPrefixType.attbyval != VOIDOID && innerTuple->prefixSize > 0) { + if (prst->state.attPrefixType.attbyval == false && innerTuple->prefixSize > 0) { prst->dvalues[4] = datumCopy(SGITDATUM(innerTuple, &prst->state), prst->state.attPrefixType.attbyval, prst->state.attPrefixType.attlen); prst->nulls[4] = ' '; } else prst->nulls[4] = 'n'; - if (prst->state.attLabelType.attbyval != VOIDOID && !IndexTupleHasNulls(node)) { + if (prst->state.attLabelType.attbyval == false && !IndexTupleHasNulls(node)) { prst->dvalues[5] = datumCopy(SGNTDATUM(node, &prst->state), prst->state.attLabelType.attbyval, prst->state.attLabelType.attlen); prst->nulls[5] = ' ';