pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Patch: Some more state codes
Date: Wed, 07 Sep 2011 15:49:39 +0000
Message-ID: <x6sjo8bbe4.fsf@2ndquadrant.com> (raw)

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/

Attachments:

postgresql-jdbc-new-state-codes.diff (text/x-patch, 1.3K) download 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");

view thread (7+ messages)  latest in thread

Message-ID: <x6sjo8bbe4.fsf@2ndquadrant.com>
Permalink:  ../x6sjo8bbe4.fsf@2ndquadrant.com/
Also on:    postgresql.org/message-id/x6sjo8bbe4.fsf@2ndquadrant.com

 ·  · 

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-jdbc@postgresql.org
  Cc: johann@2ndquadrant.com
  Subject: Re: Patch: Some more state codes
  In-Reply-To: <x6sjo8bbe4.fsf@2ndquadrant.com>
  References: <x6sjo8bbe4.fsf@2ndquadrant.com>

* 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