summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/Driver.java
diff options
context:
space:
mode:
authorPeter Mount1999-06-23 05:56:20 +0000
committerPeter Mount1999-06-23 05:56:20 +0000
commitdc88d74af3c8ae7dbf3721b7df268e77d77e0448 (patch)
tree24edde031454a67da7347bd287c8381a2b8699a0 /src/interfaces/jdbc/postgresql/Driver.java
parent79bba23528d3c8055a70137c3ea4e85c5158b3db (diff)
Some fixes supplied by Jon Nielsen [email protected]
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Driver.java')
-rw-r--r--src/interfaces/jdbc/postgresql/Driver.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java
index 21d1300a74..2c78b614ba 100644
--- a/src/interfaces/jdbc/postgresql/Driver.java
+++ b/src/interfaces/jdbc/postgresql/Driver.java
@@ -104,11 +104,13 @@ public class Driver implements java.sql.Driver
return (java.sql.Connection)con;
} catch(ClassNotFoundException ex) {
throw new PSQLException("postgresql.jvm.version",ex);
+ } catch(PSQLException(ex1) {
+ // re-throw the exception, otherwise it will be caught next, and a
+ // postgresql.unusual error will be returned instead.
+ throw ex1;
} catch(Exception ex2) {
throw new PSQLException("postgresql.unusual",ex2);
}
- // The old call - remove before posting
- //return new Connection (host(), port(), props, database(), url, this);
}
/**