From d64b110a64c407ca8f4b3d885a62c05b51711d14 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 28 Apr 2010 00:46:33 +0000 Subject: [PATCH] Fix stupid typo in refnameRangeTblEntry() --- mea maxima culpa. Per report from Josh. --- src/backend/parser/parse_relation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index 9fdcd83d75..1d0fc82bba 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -8,7 +8,7 @@ * * * 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, * match a schema name the user hasn't got access to. */ namespaceId = LookupNamespaceNoError(schemaname); - if (!OidIsValid(relId)) + if (!OidIsValid(namespaceId)) return NULL; relId = get_relname_relid(refname, namespaceId); if (!OidIsValid(relId)) -- 2.40.0