Skip to content
Snippets Groups Projects
Commit 8ed721ff authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Change variable name reference from selectClause to more appropriate unionClause.

Add a few lines of test code playing with the unique flag for unions.
 Does not do much helpful yet.
parent 98f5975c
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.54 1997/12/16 15:45:46 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.55 1997/12/23 19:39:42 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -822,9 +822,16 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt) ...@@ -822,9 +822,16 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt)
qry->qual = transformWhereClause(pstate, stmt->whereClause); qry->qual = transformWhereClause(pstate, stmt->whereClause);
/* check subselect clause */ /* check subselect clause */
if (stmt->selectClause) if (stmt->unionClause)
{
elog(NOTICE, "UNION not yet supported; using first SELECT only", NULL); elog(NOTICE, "UNION not yet supported; using first SELECT only", NULL);
/* XXX HACK just playing with union clause - thomas 1997-12-19 */
if ((qry->uniqueFlag == NULL)
&& (! ((SubSelect *)lfirst(stmt->unionClause))->unionall))
qry->uniqueFlag = "*";
}
/* check subselect clause */ /* check subselect clause */
if (stmt->havingClause) if (stmt->havingClause)
elog(NOTICE, "HAVING not yet supported; ignore clause", NULL); elog(NOTICE, "HAVING not yet supported; ignore clause", NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment