Skip to content

Commit 776d63f

Browse files
committed
Mention "table" in "violates foreign key constraint" message that was
lacking it. Perhaps it was suppressed because of line length considerations, but "table" should appear.
1 parent a4e5169 commit 776d63f

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 on table \"%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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy