File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -2046,7 +2046,7 @@ AlterDomainValidateConstraint(List *names, char *constrName)
2046
2046
Relation conrel ;
2047
2047
HeapTuple tup ;
2048
2048
Form_pg_type typTup ;
2049
- Form_pg_constraint con ;
2049
+ Form_pg_constraint con = NULL ;
2050
2050
Form_pg_constraint copy_con ;
2051
2051
char * conbin ;
2052
2052
SysScanDesc scan ;
@@ -2094,13 +2094,10 @@ AlterDomainValidateConstraint(List *names, char *constrName)
2094
2094
}
2095
2095
2096
2096
if (!found )
2097
- {
2098
- con = NULL ; /* keep compiler quiet */
2099
2097
ereport (ERROR ,
2100
2098
(errcode (ERRCODE_UNDEFINED_OBJECT ),
2101
2099
errmsg ("constraint \"%s\" of domain \"%s\" does not exist" ,
2102
2100
constrName , NameStr (con -> conname ))));
2103
- }
2104
2101
2105
2102
if (con -> contype != CONSTRAINT_CHECK )
2106
2103
ereport (ERROR ,
You can’t perform that action at this time.
0 commit comments