db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker PerformanceJdbcReferenceTest.java
Date Sun, 28 Nov 2004 09:01:48 GMT
brj         2004/11/28 01:01:48

  Modified:    src/test/org/apache/ojb/broker
                        PerformanceJdbcReferenceTest.java
  Log:
  close statement and resultset
  
  Revision  Changes    Path
  1.20      +4 -0      db-ojb/src/test/org/apache/ojb/broker/PerformanceJdbcReferenceTest.java
  
  Index: PerformanceJdbcReferenceTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/PerformanceJdbcReferenceTest.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PerformanceJdbcReferenceTest.java	28 Nov 2004 08:58:21 -0000	1.19
  +++ PerformanceJdbcReferenceTest.java	28 Nov 2004 09:01:48 -0000	1.20
  @@ -217,6 +217,7 @@
   
                   stmt.execute();
               }
  +            stmt.close();
               conn.commit();
           }
           catch (Throwable t)
  @@ -375,6 +376,9 @@
                   a.orderedUnits = rs.getInt(colOrdered);
                   a.minimumStock = rs.getInt(colMin);
               }
  +            rs.close();
  +            stmt.close();
  +            
           }
           catch (Throwable t)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message