aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-04 05:04:40 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-04 05:04:40 +0000
commit7312c19ab5a5201a1262ee698399025f97ba6797 (patch)
treeb8321deda56546cda9270ff5ef27d72d4033e2ea /src/backend/executor/execMain.c
parentce5bb92346af077024be15ade4bc061c3c8e19a3 (diff)
downloadpostgresql-7312c19ab5a5201a1262ee698399025f97ba6797.tar.gz
postgresql-7312c19ab5a5201a1262ee698399025f97ba6797.zip
Change messages like this:
ERROR: ExecInsert: rejected due to CHECK constraint insert_con To be like this: ERROR: ExecInsert: rejected due to CHECK constraint "insert_con" on "insert_tbl" Updated regression tests to match. I got sick of seeing 'rejected due to CHECK constraint "$1" in my log and not being able to find the bug in our website code... Christopher Kings-Lynne
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index ce6d6794d26..ecac95c426f 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -27,7 +27,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.171 2002/07/20 05:16:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.172 2002/08/04 05:04:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1582,8 +1582,8 @@ ExecConstraints(const char *caller, ResultRelInfo *resultRelInfo,
char *failed;
if ((failed = ExecRelCheck(resultRelInfo, slot, estate)) != NULL)
- elog(ERROR, "%s: rejected due to CHECK constraint %s",
- caller, failed);
+ elog(ERROR, "%s: rejected due to CHECK constraint \"%s\" on \"%s\"",
+ caller, failed, RelationGetRelationName(rel));
}
}