mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Improve (well, ok, fix) generated constraint name for column CHECK clause.
This commit is contained in:
parent
eb825d356e
commit
640fe03bcf
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user