Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 45a6343

Browse files
author
Barry Lind
committed
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.
1 parent 4433eb1 commit 45a6343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/jdbc/org/postgresql/Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.postgresql.core.*;
1212

1313
/*
14-
* $Id: Connection.java,v 1.39 2001/11/25 23:26:56 barry Exp $
14+
* $Id: Connection.java,v 1.40 2001/12/11 04:44:23 barry Exp $
1515
*
1616
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
1717
* JDBC2 versions of the Connection class.
@@ -1103,7 +1103,7 @@ public boolean haveMinimumCompatibleVersion(String ver) throws SQLException
11031103
*/
11041104
public int getSQLType(int oid) throws SQLException
11051105
{
1106-
Integer sqlType = (Integer)typeOidCache.get(new Integer(oid));
1106+
Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid));
11071107

11081108
// it's not in the cache, so perform a query, and add the result to the cache
11091109
if (sqlType == null)

0 commit comments

Comments
 (0)