projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af2aa8
)
Still another place to make the world safe for zero-column tables.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 7 Apr 2004 18:46:20 +0000
(18:46 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 7 Apr 2004 18:46:20 +0000
(18:46 +0000)
Per example from Jiang Wei.
src/backend/executor/execJunk.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/executor/execJunk.c
b/src/backend/executor/execJunk.c
index 2279ef8025f94b9faea1c89dae97b3ff2ed286b6..b943d163a43162f4f4ec1bb3238e60689991ba97 100644
(file)
--- a/
src/backend/executor/execJunk.c
+++ b/
src/backend/executor/execJunk.c
@@
-263,12
+263,6
@@
ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
cleanLength = junkfilter->jf_cleanLength;
cleanMap = junkfilter->jf_cleanMap;
- /*
- * Handle the trivial case first.
- */
- if (cleanLength == 0)
- return (HeapTuple) NULL;
-
/*
* Create the arrays that will hold the attribute values and the null
* information for the new "clean" tuple.