mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
From: Peter T Mount <patches@maidast.demon.co.uk>
This fixes a problem in ResultSet.getDate() when the column is NULL (reported by Vincent Partington <Vincent.Partington@nmg.nl>) 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 <ellebrec@nads.de>)
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user