File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.81 1998/08/25 15:08:12 thomas Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.82 1998/08/26 04:20:27 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -518,7 +518,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
518
518
}
519
519
520
520
sequence = makeNode (CreateSeqStmt );
521
- sequence -> seqname = constraint -> name ;
521
+ sequence -> seqname = pstrdup ( constraint -> name ) ;
522
522
sequence -> options = NIL ;
523
523
524
524
elog (NOTICE , "CREATE TABLE will create implicit sequence %s for SERIAL column %s.%s" ,
@@ -528,6 +528,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
528
528
529
529
constraint = makeNode (Constraint );
530
530
constraint -> contype = CONSTR_UNIQUE ;
531
+ constraint -> name = makeTableName (stmt -> relname , column -> colname , "key" , NULL );
531
532
532
533
column -> constraints = lappend (column -> constraints , constraint );
533
534
}
You can’t perform that action at this time.
0 commit comments