Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 39077B5DBBE for ; Wed, 7 Sep 2011 12:49:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64607-04 for ; Wed, 7 Sep 2011 15:49:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148095.authsmtp.com (outmail148095.authsmtp.com [62.13.148.95]) by mail.postgresql.org (Postfix) with ESMTP id CA609B5D80A for ; Wed, 7 Sep 2011 12:49:50 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p87FnnlR082212 for ; Wed, 7 Sep 2011 16:49:49 +0100 (BST) Received: from asuka.2ndquadrant.com (85-220-53-71.dsl.dynamic.simnet.is [85.220.53.71]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p87FndVv007715 for ; Wed, 7 Sep 2011 16:49:40 +0100 (BST) To: PostgreSQL JDBC Subject: Patch: Some more state codes From: "Johann 'Myrkraverk' Oskarsson" Date: Wed, 07 Sep 2011 15:49:39 +0000 Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Server-Quench: ffe79d5f-d968-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZXSwQT DCUsVilMUBgsKgdF BwNFJgxfNkIGTh1V d0RWJFF7KFoHWV5D ViVKB0oLEgo/WWRq CF8RcgddY0teXgNg VEFDRlMcHAB2Ax4B GBsdTB5zaAdDentv ZQgiVnctAhAcM0Z9 RUlVECMEZ2FgJjZJ BUdRIwYCbVdDeBdY a1EqVG4FYTcOe3pg RVVtY2g7bWUEJTJt Sx0GLQBaekEOE3Y5 QAoPVS4zFFEIDy40 IxE9QiMA X-Authentic-SMTP: 61633235383639.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.89 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_TVD_MIME_NO_HEADERS=0.01 X-Spam-Level: X-Archive-Number: 201109/11 X-Sequence-Number: 22129 --=-=-= Hi all, Here are some more state codes. They are really independent of any other patches/applications and can be submitted without fear of breaking anything. -- Johann Oskarsson http://www.2ndquadrant.com/ |[] PostgreSQL Development, 24x7 Support, Training and Services --+-- | Blog: http://my.opera.com/myrkraverk/blog/ --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=postgresql-jdbc-new-state-codes.diff Index: org/postgresql/util/PSQLState.java =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/util/PSQLState.java,v retrieving revision 1.15 diff -u -r1.15 PSQLState.java --- org/postgresql/util/PSQLState.java 2 Aug 2011 13:50:29 -0000 1.15 +++ org/postgresql/util/PSQLState.java 7 Sep 2011 15:42:58 -0000 @@ -88,11 +88,14 @@ public final static PSQLState SYNTAX_ERROR = new PSQLState("42601"); public final static PSQLState UNDEFINED_COLUMN = new PSQLState("42703"); + public final static PSQLState UNDEFINED_OBJECT = new PSQLState("42704"); public final static PSQLState WRONG_OBJECT_TYPE = new PSQLState("42809"); public final static PSQLState NUMERIC_CONSTANT_OUT_OF_RANGE = new PSQLState("42820"); public final static PSQLState DATA_TYPE_MISMATCH = new PSQLState("42821"); public final static PSQLState UNDEFINED_FUNCTION = new PSQLState("42883"); public final static PSQLState INVALID_NAME = new PSQLState("42602"); + public final static PSQLState UNDEFINED_TABLE = new PSQLState("42P01"); + public final static PSQLState DUPLICATE_TABLE = new PSQLState("42P07"); public final static PSQLState OUT_OF_MEMORY = new PSQLState("53200"); public final static PSQLState OBJECT_NOT_IN_STATE = new PSQLState("55000"); --=-=-=--