diff options
author | Barry Lind <barry@xythos.com> | 2003-09-09 10:49:16 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2003-09-09 10:49:16 +0000 |
commit | 5cdf771d8a457273e7eb62c097f23f65082abe8f (patch) | |
tree | 4bb9afe6165fcad05fe40642d3d899e35d170a2f /src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java | |
parent | fcdf0e22fcac4724c67bac18706d5c50931aa02d (diff) | |
download | postgresql-5cdf771d8a457273e7eb62c097f23f65082abe8f.tar.gz |
Additional SQLState work for JDBC - thanks to Kim Ho at Redhat for input on this
Modified Files:
jdbc/build.xml jdbc/org/postgresql/core/QueryExecutor.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
jdbc/org/postgresql/util/PSQLState.java
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 690741f64b..41ffe49a65 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java @@ -10,7 +10,7 @@ import org.postgresql.largeobject.*; import org.postgresql.util.PSQLException; import org.postgresql.util.PSQLState; -/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.16 2003/09/08 17:30:22 barry Exp $ +/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.17 2003/09/09 10:49:16 barry Exp $ * This class defines methods of the jdbc2 specification. This class extends * org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1 * methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement @@ -227,7 +227,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra } catch (IOException se) { - throw new PSQLException("postgresql.unusual", se); + throw new PSQLException("postgresql.unusual", PSQLState.UNEXPECTED_ERROR, se); } finally { @@ -259,7 +259,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra } catch (IOException l_ioe) { - throw new PSQLException("postgresql.unusual", l_ioe); + throw new PSQLException("postgresql.unusual", PSQLState.UNEXPECTED_ERROR, l_ioe); } setString(i, new String(l_chars, 0, l_charsRead)); } @@ -289,7 +289,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra } catch (IOException se) { - throw new PSQLException("postgresql.unusual", se); + throw new PSQLException("postgresql.unusual", PSQLState.UNEXPECTED_ERROR, se); } // lob is closed by the stream so don't call lob.close() setInt(i, oid); @@ -321,7 +321,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra } catch (IOException se) { - throw new PSQLException("postgresql.unusual", se); + throw new PSQLException("postgresql.unusual", PSQLState.UNEXPECTED_ERROR, se); } // lob is closed by the stream so don't call lob.close() setInt(i, oid); |