mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Remove unused variable to silence compiler warning
This commit is contained in:
parent
e54ae784e6
commit
9f084527a4
@ -2046,7 +2046,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
|
||||
Relation typrel;
|
||||
Relation conrel;
|
||||
HeapTuple tup;
|
||||
Form_pg_type typTup;
|
||||
Form_pg_constraint con = NULL;
|
||||
Form_pg_constraint copy_con;
|
||||
char *conbin;
|
||||
@ -2068,7 +2067,6 @@ AlterDomainValidateConstraint(List *names, char *constrName)
|
||||
tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(domainoid));
|
||||
if (!HeapTupleIsValid(tup))
|
||||
elog(ERROR, "cache lookup failed for type %u", domainoid);
|
||||
typTup = (Form_pg_type) GETSTRUCT(tup);
|
||||
|
||||
/* Check it's a domain and check user has permission for ALTER DOMAIN */
|
||||
checkDomainOwner(tup);
|
||||
|
Loading…
Reference in New Issue
Block a user