User: starksm 
  Date: 01/12/27 12:55:43

  Modified:    src/main/org/jboss/pool/jdbc Tag: Branch_2_4
                        PreparedStatementFactory.java
  Log:
  Apply patch #492169, PreparedStatement Errors being eaten
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.1 +3 -0      
jbosspool/src/main/org/jboss/pool/jdbc/Attic/PreparedStatementFactory.java
  
  Index: PreparedStatementFactory.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosspool/src/main/org/jboss/pool/jdbc/Attic/PreparedStatementFactory.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- PreparedStatementFactory.java     2001/05/15 07:58:24     1.1.1.1
  +++ PreparedStatementFactory.java     2001/12/27 20:55:42     1.1.1.1.2.1
  @@ -5,6 +5,7 @@
   
   import java.sql.*;
   import org.jboss.pool.cache.CachedObjectFactory;
  +import org.jboss.logging.Logger;
   
   /**
    * Creates PreparedStatements for a PS cache.  Doesn't yet handle
  @@ -14,6 +15,7 @@
    */
   public class PreparedStatementFactory extends CachedObjectFactory {
       private Connection con;
  +    private Logger logger = Logger.getLogger(PreparedStatementFactory.class);
   
       public PreparedStatementFactory(Connection con) {
           this.con = con;
  @@ -27,6 +29,7 @@
           try {
               return con.prepareStatement(sql);
           } catch(SQLException e) {
  +            logger.warn("Error creating prepared statement.", e);
               return null;
           }
       }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to