Improve (well, ok, fix) generated constraint name for column CHECK clause.

This commit is contained in:
Thomas G. Lockhart 1997-12-16 15:45:46 +00:00
parent eb825d356e
commit 640fe03bcf
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.53 1997/12/09 01:44:14 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.54 1997/12/16 15:45:46 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -522,7 +522,7 @@ printf("transformCreateStmt- found CHECK clause on column %s\n",column->colname)
#endif #endif
constraints = lappend(constraints, constraint); constraints = lappend(constraints, constraint);
if (constraint->name == NULL) if (constraint->name == NULL)
constraint->name = makeTableName(stmt->relname, ".", column->colname, NULL); constraint->name = makeTableName(stmt->relname, column->colname, NULL);
break; break;
default: default: