Commit 640fe03b authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

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

parent eb825d35
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment