pgsql-server/src/interfaces/jdbc/org/postgresq ...

From: barry(at)svr1(dot)postgresql(dot)org (Barry Lind)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/interfaces/jdbc/org/postgresq ...
Date: 2003-09-08 17:30:23
Message-ID: 20030908173023.46777D1B4ED@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: barry(at)svr1(dot)postgresql(dot)org 03/09/08 14:30:23

Modified files:
src/interfaces/jdbc/org/postgresql: Driver.java.in
errors.properties
src/interfaces/jdbc/org/postgresql/core: Encoding.java
PGStream.java
QueryExecutor.java
src/interfaces/jdbc/org/postgresql/fastpath: Fastpath.java
src/interfaces/jdbc/org/postgresql/jdbc1:
AbstractJdbc1Connection.java
AbstractJdbc1ResultSet.java
AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/jdbc2:
AbstractJdbc2ResultSet.java
AbstractJdbc2Statement.java
src/interfaces/jdbc/org/postgresql/util: MessageTranslator.java
PSQLException.java

Log message:
This set of changes applies a patch from KHO at redhat to add some SQLState
support to the jdbc driver.
That patch needed some work: it assumed the sqlcode in a server message was
fixed in its position, the patch lost the ability to pass exceptions, and the
patch missed a couple of places where server errors where being received.
In addition to fixing the above, I also added full support for the V3 protocol
error message syntax, I reversed the order of arguments in the PSQLException
constructor to more closely follow the constructors for SQLException, I changed
the new constructors that take PSQLState to take Object for additional
parameters as the old ones did.
Still todo are to add SQLState values to all existing exceptions thrown in the
driver and add support for parsing the V3 protocol format for notices.

Modified Files:
jdbc/build.xml jdbc/org/postgresql/Driver.java.in
jdbc/org/postgresql/errors.properties
jdbc/org/postgresql/core/Encoding.java
jdbc/org/postgresql/core/PGStream.java
jdbc/org/postgresql/core/QueryExecutor.java
jdbc/org/postgresql/fastpath/Fastpath.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
jdbc/org/postgresql/util/MessageTranslator.java
jdbc/org/postgresql/util/PSQLException.java

Browse pgsql-committers by date

  From Date Subject
Next Message Barry Lind 2003-09-08 17:45:35 pgsql-server/src/interfaces/jdbc/org/postgresq ...
Previous Message Bruce Momjian 2003-09-08 04:24:01 pgsql-server/. Tag: WIN32_DEV UPDATED