diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-09 03:22:41 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-09 03:22:41 +0000 |
commit | 2535fcde2a8a56159ed90b0debc05cf3be06ac35 (patch) | |
tree | d3fed126048e4002bab9b4a9e605e180913e678a /src/interfaces/jdbc/postgresql/Driver.java | |
parent | 83e637a99a3d8adbc0a4979cdf42303bbb8c7bb7 (diff) | |
download | postgresql-2535fcde2a8a56159ed90b0debc05cf3be06ac35.tar.gz |
From: Peter T Mount <patches@maidast.demon.co.uk>
This patch fixes the following:
* Fixes minor bug found in DatabaseMetaData.getTables() where it doesn't
handle default table types.
* It now reports an error if the client opens a database using
properties, and either the user or password properties are missing. This
should make the recent problem with Servlets easier to find.
* Commented out obsolete property in Driver.getPropertyInfo()
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Driver.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Driver.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java index 4b1772c88e..c8ef8b9a15 100644 --- a/src/interfaces/jdbc/postgresql/Driver.java +++ b/src/interfaces/jdbc/postgresql/Driver.java @@ -130,16 +130,16 @@ public class Driver implements java.sql.Driver // naughty, but its best for speed. If anyone adds a property here, then // this _MUST_ be increased to accomodate them. - DriverPropertyInfo d,dpi[] = new DriverPropertyInfo[1]; - int i=0; + DriverPropertyInfo d,dpi[] = new DriverPropertyInfo[0]; + //int i=0; - dpi[i++] = d = new DriverPropertyInfo("auth",p.getProperty("auth","default")); - d.description = "determines if password authentication is used"; - d.choices = new String[4]; - d.choices[0]="default"; // Get value from postgresql.auth property, defaults to trust - d.choices[1]="trust"; // No password authentication - d.choices[2]="password"; // Password authentication - d.choices[3]="ident"; // Ident (RFC 1413) protocol + //dpi[i++] = d = new DriverPropertyInfo("auth",p.getProperty("auth","default")); + //d.description = "determines if password authentication is used"; + //d.choices = new String[4]; + //d.choices[0]="default"; // Get value from postgresql.auth property, defaults to trust + //d.choices[1]="trust"; // No password authentication + //d.choices[2]="password"; // Password authentication + //d.choices[3]="ident"; // Ident (RFC 1413) protocol return dpi; } |