From b542fa1a6e838d3e32857cdfbe8aeff940a91c74 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sat, 18 Apr 1998 18:32:44 +0000 Subject: From: Peter T Mount This fixes a problem in ResultSet.getDate() when the column is NULL (reported by Vincent Partington ) And fixes a problem with Field's (ResultSet.getObject() was proving to be slow as it repetedly send queries for oid -> name mapping - fixed by creating a cache. (reported by Mario Ellebrecht ) --- src/interfaces/jdbc/postgresql/Connection.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/interfaces/jdbc/postgresql/Connection.java') diff --git a/src/interfaces/jdbc/postgresql/Connection.java b/src/interfaces/jdbc/postgresql/Connection.java index 75515da474e..103b4e4b8f2 100644 --- a/src/interfaces/jdbc/postgresql/Connection.java +++ b/src/interfaces/jdbc/postgresql/Connection.java @@ -81,6 +81,12 @@ public class Connection implements java.sql.Connection // New for 6.3, salt value for crypt authorisation private String salt; + // This is used by Field to cache oid -> names. + // It's here, because it's shared across this connection only. + // Hence it cannot be static within the Field class, because it would then + // be across all connections, which could be to different backends. + protected Hashtable fieldCache = new Hashtable(); + /** * This is the current date style of the backend */ -- cgit v1.2.3