diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-08 01:44:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-08 01:44:31 +0000 |
commit | b084cc3504ec62cd0b36ae47c11b4b6f06e0bb97 (patch) | |
tree | 0e21ffe15a562533b7b4bee17295ebd76f18db65 /src/include/parser/parse_relation.h | |
parent | e42f8e32e9f6580d081ac13136469c0cd8338ffa (diff) | |
download | postgresql-b084cc3504ec62cd0b36ae47c11b4b6f06e0bb97.tar.gz |
Cause schema-qualified FROM items and schema-qualified variable references
to behave according to SQL92 (or according to my current understanding
of same, anyway). Per pghackers discussion way back in March 2002:
thread 'Do FROM items of different schemas conflict?'
Diffstat (limited to 'src/include/parser/parse_relation.h')
-rw-r--r-- | src/include/parser/parse_relation.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index 38729a81a6..5d40590617 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_relation.h,v 1.37 2002/08/05 02:30:50 tgl Exp $ + * $Id: parse_relation.h,v 1.38 2002/08/08 01:44:31 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -17,7 +17,8 @@ #include "parser/parse_node.h" extern RangeTblEntry *refnameRangeTblEntry(ParseState *pstate, - char *refname, + const char *schemaname, + const char *refname, int *sublevels_up); extern void checkNameSpaceConflicts(ParseState *pstate, Node *namespace1, Node *namespace2); @@ -25,8 +26,11 @@ extern int RTERangeTablePosn(ParseState *pstate, RangeTblEntry *rte, int *sublevels_up); extern Node *colnameToVar(ParseState *pstate, char *colname); -extern Node *qualifiedNameToVar(ParseState *pstate, char *refname, - char *colname, bool implicitRTEOK); +extern Node *qualifiedNameToVar(ParseState *pstate, + char *schemaname, + char *refname, + char *colname, + bool implicitRTEOK); extern RangeTblEntry *addRangeTableEntry(ParseState *pstate, RangeVar *relation, Alias *alias, |