File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.115 2001/01/07 00:05:22 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.116 2001/01/08 03:14:58 inoue Exp $
12
12
*
13
13
* NOTES
14
14
* The PerformAddAttribute() code, like most of the relation
@@ -1195,10 +1195,10 @@ AlterTableAddConstraint(char *relationName,
1195
1195
pfree (slot );
1196
1196
1197
1197
heap_endscan (scan );
1198
- heap_close (rel , NoLock );
1199
1198
1200
1199
if (!successful )
1201
1200
{
1201
+ heap_close (rel , NoLock );
1202
1202
elog (ERROR , "AlterTableAddConstraint: rejected due to CHECK constraint %s" , name );
1203
1203
}
1204
1204
/*
@@ -1208,6 +1208,7 @@ AlterTableAddConstraint(char *relationName,
1208
1208
* the table.
1209
1209
*/
1210
1210
AddRelationRawConstraints (rel , NIL , constlist );
1211
+ heap_close (rel , NoLock );
1211
1212
pfree (constlist );
1212
1213
1213
1214
break ;
You can’t perform that action at this time.
0 commit comments