diff options
author | Marc G. Fournier | 1998-04-18 18:32:44 +0000 |
---|---|---|
committer | Marc G. Fournier | 1998-04-18 18:32:44 +0000 |
commit | b542fa1a6e838d3e32857cdfbe8aeff940a91c74 (patch) | |
tree | c9a93d39e6a88df94b25cdb336b7a95a14665116 /src/interfaces/jdbc/postgresql/Connection.java | |
parent | 87d96ed6725c5a95ca618937f6fdd762b599b9e9 (diff) |
From: Peter T Mount <[email protected]>REL6_3_2
This fixes a problem in ResultSet.getDate() when the column is NULL
(reported by Vincent Partington <[email protected]>)
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 <[email protected]>)
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Connection.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Connection.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |