Commit d64b110a authored by Tom Lane's avatar Tom Lane

Fix stupid typo in refnameRangeTblEntry() --- mea maxima culpa.

Per report from Josh.
parent 7780c412
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.150 2010/02/26 02:00:52 momjian Exp $ * $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.151 2010/04/28 00:46:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -95,7 +95,7 @@ refnameRangeTblEntry(ParseState *pstate, ...@@ -95,7 +95,7 @@ refnameRangeTblEntry(ParseState *pstate,
* match a schema name the user hasn't got access to. * match a schema name the user hasn't got access to.
*/ */
namespaceId = LookupNamespaceNoError(schemaname); namespaceId = LookupNamespaceNoError(schemaname);
if (!OidIsValid(relId)) if (!OidIsValid(namespaceId))
return NULL; return NULL;
relId = get_relname_relid(refname, namespaceId); relId = get_relname_relid(refname, namespaceId);
if (!OidIsValid(relId)) if (!OidIsValid(relId))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment