summaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-05-21 03:53:51 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-05-21 03:53:51 +0000
commit9f3d63936b0e155f71a020dc0255c323b9e67c2a (patch)
tree0548dbbcdaf4cdf9895655535c7059aabbccea7b /src/backend/executor/execMain.c
parenta45341979fa16d67536d35c4b1346544c028890d (diff)
From: David Hartwig <daveh@insightdist.com>
Here is a patch to remove the requirement that ORDER/GROUP BY clause identifiers be included in the target list.
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 35107c8af20..1437c2e8c9c 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.45 1998/02/27 08:43:52 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.46 1998/05/21 03:53:50 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -521,14 +521,16 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
* NOTE: in the future we might want to initialize the junk
* filter for all queries.
* ----------------
+ * SELECT added by daveh@insightdist.com 5/20/98 to allow
+ * ORDER/GROUP BY have an identifier missing from the target.
*/
if (operation == CMD_UPDATE || operation == CMD_DELETE ||
- operation == CMD_INSERT)
+ operation == CMD_INSERT || operation == CMD_SELECT)
{
-
JunkFilter *j = (JunkFilter *) ExecInitJunkFilter(targetList);
-
estate->es_junkFilter = j;
+
+ tupType = j->jf_cleanTupType; /* Added by daveh@insightdist.com 5/20/98 */
}
else
estate->es_junkFilter = NULL;