Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit776d63f

Browse files
committed
Mention "table" in "violates foreign key constraint" message that was
lacking it. Perhaps it was suppressed because of line lengthconsiderations, but "table" should appear.
1 parenta4e5169 commit776d63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/ri_triggers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
1919
*
20-
* $PostgreSQL: pgsql/src/backend/utils/adt/ri_triggers.c,v 1.83 2005/11/22 18:17:23 momjian Exp $
20+
* $PostgreSQL: pgsql/src/backend/utils/adt/ri_triggers.c,v 1.84 2005/12/28 16:47:21 momjian Exp $
2121
*
2222
* ----------
2323
*/
@@ -3294,7 +3294,7 @@ ri_ReportViolation(RI_QueryKey *qkey, const char *constrname,
32943294
else
32953295
ereport(ERROR,
32963296
(errcode(ERRCODE_FOREIGN_KEY_VIOLATION),
3297-
errmsg("update or delete on \"%s\" violates foreign key constraint \"%s\" on \"%s\"",
3297+
errmsg("update or delete ontable\"%s\" violates foreign key constraint \"%s\" on table \"%s\"",
32983298
RelationGetRelationName(pk_rel),
32993299
constrname,RelationGetRelationName(fk_rel)),
33003300
errdetail("Key (%s)=(%s) is still referenced from table \"%s\".",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp