Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ed721f

Browse files
author
Thomas G. Lockhart
committed
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.
1 parent98f5975 commit8ed721f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎src/backend/parser/analyze.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.54 1997/12/16 15:45:46 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.55 1997/12/23 19:39:42 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -822,9 +822,16 @@ transformSelectStmt(ParseState *pstate, RetrieveStmt *stmt)
822822
qry->qual=transformWhereClause(pstate,stmt->whereClause);
823823

824824
/* check subselect clause */
825-
if (stmt->selectClause)
825+
if (stmt->unionClause)
826+
{
826827
elog(NOTICE,"UNION not yet supported; using first SELECT only",NULL);
827828

829+
/* XXX HACK just playing with union clause - thomas 1997-12-19 */
830+
if ((qry->uniqueFlag==NULL)
831+
&& (! ((SubSelect*)lfirst(stmt->unionClause))->unionall))
832+
qry->uniqueFlag="*";
833+
}
834+
828835
/* check subselect clause */
829836
if (stmt->havingClause)
830837
elog(NOTICE,"HAVING not yet supported; ignore clause",NULL);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp