mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching. Discussion: https://postgr.es/m/20200129200401.GA6303@alvherre.pgsql Reviewed-by: Tom Lane, Michael Paquier
This commit is contained in:
@ -212,8 +212,8 @@ AlterObjectRename_internal(Relation rel, Oid objectId, const char *new_name)
|
||||
if (Anum_owner <= 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to rename %s",
|
||||
getObjectDescriptionOids(classId, objectId)))));
|
||||
errmsg("must be superuser to rename %s",
|
||||
getObjectDescriptionOids(classId, objectId))));
|
||||
|
||||
/* Otherwise, must be owner of the existing object */
|
||||
datum = heap_getattr(oldtup, Anum_owner,
|
||||
@ -715,8 +715,8 @@ AlterObjectNamespace_internal(Relation rel, Oid objid, Oid nspOid)
|
||||
if (Anum_owner <= 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to set schema of %s",
|
||||
getObjectDescriptionOids(classId, objid)))));
|
||||
errmsg("must be superuser to set schema of %s",
|
||||
getObjectDescriptionOids(classId, objid))));
|
||||
|
||||
/* Otherwise, must be owner of the existing object */
|
||||
owner = heap_getattr(tup, Anum_owner, RelationGetDescr(rel), &isnull);
|
||||
|
Reference in New Issue
Block a user