db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer ConnectionFactoryPooledImpl.java
Date Tue, 25 May 2004 11:17:45 GMT
brianm      2004/05/25 04:17:45

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        ConnectionFactoryPooledImpl.java
  Log:
  Reverting to old construct for guaranteeing statement and resultset properly closed
  
  Revision  Changes    Path
  1.13      +9 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java
  
  Index: ConnectionFactoryPooledImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ConnectionFactoryPooledImpl.java	23 May 2004 16:19:34 -0000	1.12
  +++ ConnectionFactoryPooledImpl.java	25 May 2004 11:17:45 -0000	1.13
  @@ -208,11 +208,18 @@
                   try
                   {
                       rset.close();
  +                }
  +                catch (SQLException t)
  +                {
  +                    if (log.isDebugEnabled()) log.debug("ResultSet already closed.", t);
  +                }
  +                try
  +                {
                       stmt.close();
                   }
                   catch (SQLException t)
                   {
  -                    log.error("Either the statement or resultSet were already closed.",
t);
  +                    if (log.isDebugEnabled()) log.debug("Statement already closed.", 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