pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <eetasoft@online.ee>
To: pgsql-odbc@postgresql.org
Subject: Get error message details
Date: Mon, 3 Oct 2005 21:44:50 +0300
Message-ID: <dhru7p$tc7$1@news.hub.org> (raw)

In PgAdmin running code

create table t1 ( c1 serial primary key );
create table t2 ( c1 integer references t1);
insert into t1 values(1);
insert into t2 values (1);
delete from t1;

causes nice detailed error message

ERROR:  update or delete on "t1" violates foreign key constraint 
"t2_c1_fkey" on "t2"
DETAIL:  Key (c1)=(1) is still referenced from table "t2".

Runnign this code through ODBC I got only ERROR: line

How to retrieve the DETAIL: line using ODBC ?

Andrus. 





Message-ID: <dhru7p$tc7$1@news.hub.org>
Permalink:  ../dhru7p$tc7$1@news.hub.org/
Also on:    postgresql.org/message-id/dhru7p$tc7$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: eetasoft@online.ee
  Subject: Re: Get error message details
  In-Reply-To: <dhru7p$tc7$1@news.hub.org>
  References: <dhru7p$tc7$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox