postgresql-jdbc.git / summary / log / commit / refs
commit 2cf48ac07d18c1ca3c827c1a06adff1ff2fd7cdb
Author: Barry Lind <barry@xythos.com>
Date: Tue Dec 11 04:44:23 2001 +0000
Patch from Ned Wolpert that fixes a bug that caused the cache of types not
to be used, causing extra sql statements to be executed. This was a
significant performance problem with the database meta data classes.
The fix is a simple one liner.
org/postgresql/Connection.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org/postgresql/Connection.java b/org/postgresql/Connection.java
index ac9164dc..856983a6 100644
--- a/org/postgresql/Connection.java
+++ b/org/postgresql/Connection.java
@@ -1103,7 +1103,7 @@ public abstract class Connection
*/
public int getSQLType(int oid) throws SQLException
{
- Integer sqlType = (Integer)typeOidCache.get(new Integer(oid));
+ Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid));
// it's not in the cache, so perform a query, and add the result to the cache
if (sqlType == null)
[parent: 9a6075330767]