diff options
author | Peter Mount | 1999-05-17 22:43:30 +0000 |
---|---|---|
committer | Peter Mount | 1999-05-17 22:43:30 +0000 |
commit | 3f59cc08316f9aea92823a021c6232b298e00d03 (patch) | |
tree | 3c8a787e2346fce5e4d324dcb5f80c76a145beab /src/interfaces/jdbc/postgresql/Driver.java | |
parent | c2b75c83f341cf06f6594235b40281ec3956538e (diff) |
Minor bug fixes. Replaced DateStyle support with ISO.
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Driver.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Driver.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java index b3cc57f4f2..d563a2697c 100644 --- a/src/interfaces/jdbc/postgresql/Driver.java +++ b/src/interfaces/jdbc/postgresql/Driver.java @@ -3,6 +3,13 @@ package postgresql; import java.sql.*; import java.util.*; +// You will find some mentions to a PSQLException class. This was intended +// to allow internationalisation of error messages. However, this is not +// working quite to plan, so the class exists in the source, but it's not +// quite implemented yet. Peter May 17 1999. +// +//import postgresql.util.PSQLException; + /** * The Java SQL framework allows for multiple database drivers. Each * driver should supply a class that implements the Driver interface @@ -101,8 +108,10 @@ public class Driver implements java.sql.Driver con.openConnection (host(), port(), props, database(), url, this); return (java.sql.Connection)con; } catch(ClassNotFoundException ex) { + //throw new PSQLException("postgresql.jvm.version",ex); throw new SQLException("The postgresql.jar file does not contain the correct JDBC classes for this JVM. Try rebuilding.\nException thrown was "+ex.toString()); } catch(Exception ex2) { + //throw new PSQLException("postgresql.unusual",ex2); throw new SQLException("Something unusual has occured to cause the driver to fail. Please report this exception: "+ex2.toString()); } // The old call - remove before posting @@ -346,6 +355,7 @@ public class Driver implements java.sql.Driver */ public static SQLException notImplemented() { + //return new PSQLException("postgresql.unimplemented"); return new SQLException("This method is not yet implemented."); } } |