mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Message style fixes
This commit is contained in:
@ -639,7 +639,7 @@ DefineIndex(Oid relationId,
|
||||
if (partitioned && tablespaceId == MyDatabaseTableSpace)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("cannot specify default tablespace for partitioned relation")));
|
||||
errmsg("cannot specify default tablespace for partitioned relations")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -7689,12 +7689,14 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
|
||||
fkconstraint->fk_upd_action == FKCONSTR_ACTION_CASCADE)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("invalid ON UPDATE action for foreign key constraint containing generated column")));
|
||||
errmsg("invalid %s action for foreign key constraint containing generated column",
|
||||
"ON UPDATE")));
|
||||
if (fkconstraint->fk_del_action == FKCONSTR_ACTION_SETNULL ||
|
||||
fkconstraint->fk_del_action == FKCONSTR_ACTION_SETDEFAULT)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("invalid ON DELETE action for foreign key constraint containing generated column")));
|
||||
errmsg("invalid %s action for foreign key constraint containing generated column",
|
||||
"ON DELETE")));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user