1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Change owner from oid to int4 type.

This commit is contained in:
Bruce Momjian
1998-08-11 18:28:49 +00:00
parent 8ed36c3dba
commit 79c8d2e3a0
20 changed files with 83 additions and 91 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.12 1998/07/27 19:37:45 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.13 1998/08/11 18:28:11 momjian Exp $
*
* NOTES
* See acl.h.
@@ -455,14 +455,14 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
* if the acl is null, by default the owner can do whatever he
* wants to with it
*/
Oid ownerId;
int4 ownerId;
relation = heap_openr(RelationRelationName);
ownerId = (Oid) heap_getattr(htp,
ownerId = (int4) heap_getattr(htp,
Anum_pg_class_relowner,
RelationGetTupleDescriptor(relation),
(bool *) NULL);
acl = aclownerdefault(relname, ownerId);
acl = aclownerdefault(relname, (AclId)ownerId);
}
#else
{ /* This is why the syscache is great... */