diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-03 16:35:08 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-03 16:35:08 +0000 |
commit | c298d74d4957845bb03a67092c30b53e5e0d01c2 (patch) | |
tree | 4dca901e87c14a249de21374da867db1059b8462 /src/backend/commands/sequence.c | |
parent | 1bd3a8f58bb8147628a85643b0246051a6e4e5ee (diff) | |
download | postgresql-c298d74d4957845bb03a67092c30b53e5e0d01c2.tar.gz postgresql-c298d74d4957845bb03a67092c30b53e5e0d01c2.zip |
More functions updated to new fmgr style --- money, name, tid datatypes.
We're reaching the mopup stage here (good thing too, this is getting
tedious).
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r-- | src/backend/commands/sequence.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 80fca6a38a1..f528abed752 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -201,7 +201,7 @@ nextval(PG_FUNCTION_ARGS) rescnt = 0; #ifndef NO_SECURITY - if (pg_aclcheck(seqname, getpgusername(), ACL_WR) != ACLCHECK_OK) + if (pg_aclcheck(seqname, GetPgUserName(), ACL_WR) != ACLCHECK_OK) elog(ERROR, "%s.nextval: you don't have permissions to set sequence %s", seqname, seqname); #endif @@ -298,7 +298,7 @@ currval(PG_FUNCTION_ARGS) int32 result; #ifndef NO_SECURITY - if (pg_aclcheck(seqname, getpgusername(), ACL_RD) != ACLCHECK_OK) + if (pg_aclcheck(seqname, GetPgUserName(), ACL_RD) != ACLCHECK_OK) elog(ERROR, "%s.currval: you don't have permissions to read sequence %s", seqname, seqname); #endif @@ -328,7 +328,7 @@ setval(PG_FUNCTION_ARGS) Form_pg_sequence seq; #ifndef NO_SECURITY - if (pg_aclcheck(seqname, getpgusername(), ACL_WR) != ACLCHECK_OK) + if (pg_aclcheck(seqname, GetPgUserName(), ACL_WR) != ACLCHECK_OK) elog(ERROR, "%s.setval: you don't have permissions to set sequence %s", seqname, seqname); #endif |