From 2535fcde2a8a56159ed90b0debc05cf3be06ac35 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 9 Feb 1998 03:22:41 +0000 Subject: From: Peter T Mount 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() --- src/interfaces/jdbc/postgresql/Driver.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/interfaces/jdbc/postgresql/Driver.java') diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java index 4b1772c88ef..c8ef8b9a15a 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; } -- cgit v1.2.3