aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/acl.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-09-15 20:03:37 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-09-15 20:03:37 +0000
commit2d13472c9e708ec3ed1b5c8fcb763a0ba22afd1e (patch)
tree35caea5f40436b76b80ae1caa3f561189bfbb089 /src/backend/utils/adt/acl.c
parentbaba02a84e2ad6bbf40ed30249fd53421614f995 (diff)
downloadpostgresql-2d13472c9e708ec3ed1b5c8fcb763a0ba22afd1e.tar.gz
postgresql-2d13472c9e708ec3ed1b5c8fcb763a0ba22afd1e.zip
OK, some of these syntax errors should be given other codes.
Diffstat (limited to 'src/backend/utils/adt/acl.c')
-rw-r--r--src/backend/utils/adt/acl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c
index 8d3b582fe29..05cc2ec8b6a 100644
--- a/src/backend/utils/adt/acl.c
+++ b/src/backend/utils/adt/acl.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.97 2003/09/09 23:22:21 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.98 2003/09/15 20:03:37 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -776,8 +776,8 @@ aclremove(PG_FUNCTION_ARGS)
if (dst == 0)
{ /* start */
ereport(ERROR,
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("cannot remove the world ACL")));
+ (errcode(ERRCODE_DATA_EXCEPTION),
+ errmsg("aclitem for public may not be removed")));
}
else if (dst == old_num - 1)
{ /* end */
@@ -846,7 +846,7 @@ makeaclitem(PG_FUNCTION_ARGS)
else if (u_grantee != 0 && g_grantee != 0)
{
ereport(ERROR,
- (errcode(ERRCODE_SYNTAX_ERROR),
+ (errcode(ERRCODE_DATA_EXCEPTION),
errmsg("cannot specify both user and group")));
}
else if (u_grantee != 0)