*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.52 2000/02/15 03:37:47 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.53 2000/02/15 07:47:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
List *fmember;
bool match = FALSE;
-// char *field;
Attr *cattr = lfirst(candidate);
Assert(IsA(cattr, Attr));
Assert(length(cattr->attrs) == 1);
-// field = strVal(lfirst(ccol));
-// bool match = FALSE;
-
foreach(fmember, filter)
{
Attr *fattr = lfirst(fmember);
static void
parseFromClause(ParseState *pstate, List *frmList)
{
-// List *shape, *alias;
-// Node **qual;
-// char *lname, *rname;
-
List *fl;
foreach(fl, frmList)
else if (IsA(n, JoinExpr))
{
#ifndef DISABLE_JOIN_SYNTAX
-// char *lname, *rname;
RangeTblEntry *l_rte, *r_rte;
- Attr *l_name, *r_name;
+ Attr *l_name, *r_name = NULL;
JoinExpr *j = (JoinExpr *) n;
if (j->alias != NULL)
if (IsA(j->rarg, JoinExpr))
{
-// elog(ERROR, "Nested JOINs are not yet supported");
parseFromClause(pstate, lcons(j->rarg, NIL));
l_name = ((JoinExpr *)j->larg)->alias;
}
Value *r_col = lfirst(rx);
Assert(IsA(r_col, String));
-// if (equal(l_col, r_col))
if (strcmp(strVal(l_col), strVal(r_col)) == 0)
{
id = (Ident *) makeNode(Ident);
* List of Ident nodes means column names from a real USING
* clause. Determine the shape of the joined table.
*/
-// List *ltable, *rtable;
List *ucols, *ucol;
List *shape = NULL;
List *alias = NULL;