Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45a6343

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 asignificant performance problem with the database meta data classes.The fix is a simple one liner.
1 parent4433eb1 commit45a6343

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
importorg.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
publicintgetSQLType(intoid)throwsSQLException
11051105
{
1106-
IntegersqlType = (Integer)typeOidCache.get(newInteger(oid));
1106+
IntegersqlType = (Integer)sqlTypeCache.get(newInteger(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)

[8]ページ先頭

©2009-2025 Movatter.jp