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)
20462046 Relation conrel ;
20472047 HeapTuple tup ;
20482048 Form_pg_type typTup ;
2049- Form_pg_constraint con ;
2049+ Form_pg_constraint con = NULL ;
20502050 Form_pg_constraint copy_con ;
20512051 char * conbin ;
20522052 SysScanDesc scan ;
@@ -2094,13 +2094,10 @@ AlterDomainValidateConstraint(List *names, char *constrName)
20942094 }
20952095
20962096 if (!found )
2097- {
2098- con = NULL ; /* keep compiler quiet */
20992097 ereport (ERROR ,
21002098 (errcode (ERRCODE_UNDEFINED_OBJECT ),
21012099 errmsg ("constraint \"%s\" of domain \"%s\" does not exist" ,
21022100 constrName , NameStr (con -> conname ))));
2103- }
21042101
21052102 if (con -> contype != CONSTRAINT_CHECK )
21062103 ereport (ERROR ,
You can’t perform that action at this time.
0 commit comments