aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2001-12-11 04:44:23 +0000
committerBarry Lind <barry@xythos.com>2001-12-11 04:44:23 +0000
commit45a6343ebb7031f4c4c3c4aacf005c5eb1eb54e9 (patch)
treef30a15199f1757ec76a97bf9aa540c7cb063b5a0
parent4433eb1dff36707914081efeaff222f81412d60f (diff)
downloadpostgresql-45a6343ebb7031f4c4c3c4aacf005c5eb1eb54e9.tar.gz
postgresql-45a6343ebb7031f4c4c3c4aacf005c5eb1eb54e9.zip
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.
-rw-r--r--src/interfaces/jdbc/org/postgresql/Connection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/Connection.java b/src/interfaces/jdbc/org/postgresql/Connection.java
index 6bbdd1fe979..54506257c00 100644
--- a/src/interfaces/jdbc/org/postgresql/Connection.java
+++ b/src/interfaces/jdbc/org/postgresql/Connection.java
@@ -11,7 +11,7 @@ import org.postgresql.util.*;
import org.postgresql.core.*;
/*
- * $Id: Connection.java,v 1.39 2001/11/25 23:26:56 barry Exp $
+ * $Id: Connection.java,v 1.40 2001/12/11 04:44:23 barry Exp $
*
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
* JDBC2 versions of the Connection class.
@@ -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)