From 7f018ac1c21bf1c41e692f7097a1f29f3ad7fe1c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 6 Aug 2004 18:05:49 +0000 Subject: Use one, not zero, as the default lower bound for arrays of AclItems. This avoids changing the displayed appearance of ACL columns now that array_out decorates its output with bounds information when the lower bound isn't one. Per gripe from Gaetano Mendola. Note that I did not force initdb for this, although any database initdb'd in the last couple of days is going to have some problems. --- src/backend/utils/adt/acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt/acl.c') diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index 290c3ed49d2..4464579857a 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.108 2004/08/01 20:30:49 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.109 2004/08/06 18:05:48 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -328,7 +328,7 @@ allocacl(int n) new_acl->ndim = 1; new_acl->flags = 0; new_acl->elemtype = ACLITEMOID; - ARR_LBOUND(new_acl)[0] = 0; + ARR_LBOUND(new_acl)[0] = 1; ARR_DIMS(new_acl)[0] = n; return new_acl; } -- cgit v1.2.3