X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3A93FD1B18A for ; Thu, 15 Jul 2004 05:59:14 -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 67081-09 for ; Thu, 15 Jul 2004 08:59:18 +0000 (GMT) Received: from atlrel9.hp.com (atlrel9.hp.com [156.153.255.214]) by svr1.postgresql.org (Postfix) with ESMTP id DC863D1B178 for ; Thu, 15 Jul 2004 05:59:10 -0300 (ADT) Received: from iconsrv4.india.hp.com (iconsrv4.india.hp.com [15.42.229.12]) by atlrel9.hp.com (Postfix) with ESMTP id 106E97A452 for ; Thu, 15 Jul 2004 02:59:16 -0600 (MDT) Received: from nt42231 (nt42231.india.hp.com [15.10.42.231]) by iconsrv4.india.hp.com (8.9.3 (PHNE_29773)/8.9.3 SMKit7.02) with SMTP id OAA09609 for ; Thu, 15 Jul 2004 14:29:07 +0530 (IST) Reply-To: From: "Krishnakanth Rao" To: Subject: error codes using JDBC Date: Thu, 15 Jul 2004 14:29:00 +0530 Message-ID: <001201c46a49$f94804e0$e72a0a0f@india.hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=EXCUSE_16 X-Spam-Level: X-Archive-Number: 200407/179 X-Sequence-Number: 10563 Hi, I'am using the jdbc driver pg73jdbc3.jar in my jdbc code to acces PostGRE SQL. Whenever a sql exception occurs it doesnt give me the appropriate error code , eg referential integrity constraint voilated etc. The error code from the SQLException is always zero. How do I obtain the exact error code as mentioned in PostGRE documents Regards K Krishnakanth Rao Senior Software Engineer HP Global Delivery India Center 29 Cunningham Road Bangalore - 560 052 India +91 80 22051374 DID +91 98456 82188 Mobile Disclaimer: This e-mail, and any files transmitted with it are "HP Confidential" and intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail in error, please discard the message and notify me directly.