Skip site navigation (1) Skip section navigation (2)

Improve CHECK failure message

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Improve CHECK failure message
Date: 2002-08-01 03:23:23
Message-ID: GNELIHDDFBOCMGBFGEFOMEHGCDAA.chriskl@familyhealth.com.au (view raw or flat)
Thread:
Lists: pgsql-patches
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...

Chris

Attachment: checkmsg.txt
Description: text/plain (10.1 KB)

Responses

pgsql-patches by date

Next:From: Thomas LockhartDate: 2002-08-01 04:43:00
Subject: Re: int64 timestamp patch for contrib/pg_controldata
Previous:From: Bruce MomjianDate: 2002-08-01 01:17:47
Subject: Re: int64 timestamp patch for contrib/pg_controldata

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group