]> granicus.if.org Git - postgresql/blob - src/include/parser/parse_clause.h
Fix for ORDER BY in UNION.
[postgresql] / src / include / parser / parse_clause.h
1 /*-------------------------------------------------------------------------
2  *
3  * parse_clause.h
4  *
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: parse_clause.h,v 1.5 1997/12/29 04:31:50 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PARSE_CLAUSE_H
14 #define PARSE_CLAUSE_H
15
16 #include <nodes/pg_list.h>
17 #include <nodes/nodes.h>
18 #include <nodes/parsenodes.h>
19 #include <nodes/primnodes.h>
20 #include <parser/parse_node.h>
21
22 extern void makeRangeTable(ParseState *pstate, char *relname, List *frmList);
23 extern Node *transformWhereClause(ParseState *pstate, Node *a_expr);
24 extern List *transformGroupClause(ParseState *pstate, List *grouplist,
25                         List *targetlist);
26 extern List *transformSortClause(ParseState *pstate,
27                                         List *orderlist, List *sortClause,
28                                         List *targetlist, char *uniqueFlag);
29 extern List *transformUnionClause(List *unionClause, List *targetlist);
30
31 #endif                                                  /* PARSE_CLAUSE_H */
32