You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@locus.apache.org on 2000/11/30 00:17:36 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/util GenericConnection.java

craigmcc    00/11/29 15:17:34

  Modified:    src/share/org/apache/struts/util GenericConnection.java
  Log:
  The JDBC-ODBC bridge driver throws java.lang.UnsupportedOperationException
  on conn.getTypeMap(), so swallow this exception as well.
  
  Revision  Changes    Path
  1.2       +5 -3      jakarta-struts/src/share/org/apache/struts/util/GenericConnection.java
  
  Index: GenericConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/GenericConnection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GenericConnection.java	2000/11/26 05:11:31	1.1
  +++ GenericConnection.java	2000/11/29 23:17:29	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/GenericConnection.java,v 1.1 2000/11/26 05:11:31 craigmcc Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/11/26 05:11:31 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/GenericConnection.java,v 1.2 2000/11/29 23:17:29 craigmcc Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/29 23:17:29 $
    *
    * ====================================================================
    *
  @@ -81,7 +81,7 @@
    * JDBC driver.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 2000/11/26 05:11:31 $
  + * @version $Revision: 1.2 $ $Date: 2000/11/29 23:17:29 $
    */
   
   public class GenericConnection implements Connection {
  @@ -116,6 +116,8 @@
               this.map = conn.getTypeMap();
           } catch (SQLException e) {
               ;   // PostgreSQL throws a "not yet implemented" exception
  +        } catch (UnsupportedOperationException e) {
  +            ;   // JDBC-ODBC bridge throws this
           }
           this.readOnly = readOnly;