X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5018BD9E9A for ; Mon, 3 Oct 2005 15:45:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17574-04 for ; Mon, 3 Oct 2005 18:45:24 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5C617D9EAF for ; Mon, 3 Oct 2005 15:45:21 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 7FCB931F51; Mon, 3 Oct 2005 20:45:17 +0200 (MET DST) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Get error message details Date: Mon, 3 Oct 2005 21:44:50 +0300 Organization: Hub.Org Networking Services Lines: 21 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.195 required=5 tests=[AWL=0.010, PRIORITY_NO_NAME=1.185] X-Spam-Level: * X-Archive-Number: 200510/6 X-Sequence-Number: 6108 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.