From 27edff700efdcecb11421c922a68149b8a9d457c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 23 May 2004 17:10:54 +0000 Subject: Still another place to make the world safe for zero-column tables: remove the ancient (and always pretty dodgy) assumption in parse_clause.c that a query can't have an empty targetlist. --- src/include/parser/parse_clause.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include/parser/parse_clause.h') diff --git a/src/include/parser/parse_clause.h b/src/include/parser/parse_clause.h index fbe1f06c22a..923f2e23af4 100644 --- a/src/include/parser/parse_clause.h +++ b/src/include/parser/parse_clause.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_clause.h,v 1.40 2004/01/23 02:13:12 neilc Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_clause.h,v 1.41 2004/05/23 17:10:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,11 +27,11 @@ extern Node *transformWhereClause(ParseState *pstate, Node *clause, extern Node *transformLimitClause(ParseState *pstate, Node *clause, const char *constructName); extern List *transformGroupClause(ParseState *pstate, List *grouplist, - List *targetlist, List *sortClause); + List **targetlist, List *sortClause); extern List *transformSortClause(ParseState *pstate, List *orderlist, - List *targetlist, bool resolveUnknown); + List **targetlist, bool resolveUnknown); extern List *transformDistinctClause(ParseState *pstate, List *distinctlist, - List *targetlist, List **sortClause); + List **targetlist, List **sortClause); extern List *addAllTargetsToSortList(ParseState *pstate, List *sortlist, List *targetlist, -- cgit v1.2.3