projects
/
gevel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2e286e
)
fix wrong check of attbyval
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 10 Sep 2013 08:53:01 +0000
(12:53 +0400)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 10 Sep 2013 08:53:01 +0000
(12:53 +0400)
gevel.c
patch
|
blob
|
history
diff --git
a/gevel.c
b/gevel.c
index
fe2f896
..
0715710
100644
(file)
--- a/
gevel.c
+++ b/
gevel.c
@@
-1169,13
+1169,13
@@
next:
*tid = node->t_tid;
prst->dvalues[3] = PointerGetDatum(tid);
prst->nulls[3] = ' ';
*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';
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] = ' ';
prst->dvalues[5] = datumCopy(SGNTDATUM(node, &prst->state),
prst->state.attLabelType.attbyval, prst->state.attLabelType.attlen);
prst->nulls[5] = ' ';