Skip to content

Commit d64b110

Browse files
committed
Fix stupid typo in refnameRangeTblEntry() --- mea maxima culpa.
Per report from Josh.
1 parent 7780c41 commit d64b110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/parse_relation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.150 2010/02/26 02:00:52 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.151 2010/04/28 00:46:33 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -95,7 +95,7 @@ refnameRangeTblEntry(ParseState *pstate,
9595
* match a schema name the user hasn't got access to.
9696
*/
9797
namespaceId = LookupNamespaceNoError(schemaname);
98-
if (!OidIsValid(relId))
98+
if (!OidIsValid(namespaceId))
9999
return NULL;
100100
relId = get_relname_relid(refname, namespaceId);
101101
if (!OidIsValid(relId))

0 commit comments

Comments
 (0)