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 1CCB53A5166 for ; Mon, 29 Nov 2004 14:58:07 +0000 (GMT) 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 54104-10 for ; Mon, 29 Nov 2004 14:57:53 +0000 (GMT) Received: from mail1.fleetmind.com (unknown [216.13.47.20]) by svr1.postgresql.org (Postfix) with SMTP id E54D23A3B8B for ; Mon, 29 Nov 2004 14:57:55 +0000 (GMT) Received: From [127.0.0.1] ([127.0.0.1]) by mail1.fleetmind.com (WebShield SMTP v4.5 MR1a); id 1101740274742; Mon, 29 Nov 2004 09:57:54 -0500 X-Processing: Received: from tetrasvr.fleetmind.com (LocalNetwork) [127.0.0.0] by mail1 with SMTP (Fluffy the SMTPGuardDog - Version 1.4.95) for pgsql-jdbc@postgresql.org; 29 Nov 2004 09:57:54 -0500 Received: from [192.168.201.40] (ING-LAURENT [192.168.201.40]) by tetrasvr.fleetmind.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XR9GZLYX; Mon, 29 Nov 2004 09:57:57 -0500 Message-ID: <41AB38F5.7000205@fleetmind.com> Date: Mon, 29 Nov 2004 09:57:57 -0500 From: Laurent Duperval User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: No error code on unique constraint violation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/221 X-Sequence-Number: 11643 Hello, I'm using postgres-jdbc-80b1.308 (type 3) with Postgres 8 beta 5. I'm running some unit tests where I test unique constraint violations. When I get an exception, I check the error code to see what it is and take appropriate action. With SQL Server and Firebird I get a specific error code but with the Postgres driver I get 0. I'm not sure if this is a driver or a Postgres problem. I'm running on Windows. L