From 1d76528154125e3a76b2d24c8b0b69c08436ee39 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 10 Sep 2013 12:53:01 +0400 Subject: [PATCH] fix wrong check of attbyval --- gevel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] = ' '; -- 2.46.1