diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-12 20:48:48 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-12 20:48:48 +0000 |
commit | e4949f9fe55223dac74b0075b5483ad15e8e318c (patch) | |
tree | 0eebc8861f09df6d575a5834278176c04fe8ce16 /src/backend/parser/parse_query.c | |
parent | c00c511b7bb85e8c3fa2424a25cb9cea3d5f4b33 (diff) |
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] better access control error messages
This patch replaces the 'no such class or insufficient privilege' with
distinct error messages that tell you whether the table really doesn't
exist or whether access was denied.
Diffstat (limited to 'src/backend/parser/parse_query.c')
-rw-r--r-- | src/backend/parser/parse_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/parse_query.c b/src/backend/parser/parse_query.c index 398685bed4a..2411e264974 100644 --- a/src/backend/parser/parse_query.c +++ b/src/backend/parser/parse_query.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.14 1997/02/14 23:02:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.15 1997/03/12 20:47:57 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -133,7 +133,7 @@ addRangeTableEntry(ParseState *pstate, relation = heap_openr(relname); if (relation == NULL) { elog(WARN,"%s: %s", - relname, ACL_NO_PRIV_WARNING); + relname, aclcheck_error_strings[ACLCHECK_NO_CLASS]); } /* |