[jboss-cvs] JBossAS SVN: r96595 - branches/JBPAPP_5_0/connector/src/main/org/jboss/resource/adapter/jdbc.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 19 15:14:18 EST 2009


Author: smarlow at redhat.com
Date: 2009-11-19 15:14:17 -0500 (Thu, 19 Nov 2009)
New Revision: 96595

Modified:
   branches/JBPAPP_5_0/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
Log:
JBPAPP-3102 Errors using JDBC-3 driver

Modified: branches/JBPAPP_5_0/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
===================================================================
--- branches/JBPAPP_5_0/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java	2009-11-19 19:11:02 UTC (rev 96594)
+++ branches/JBPAPP_5_0/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java	2009-11-19 20:14:17 UTC (rev 96595)
@@ -27,6 +27,7 @@
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.SQLWarning;
 import java.sql.Savepoint;
 import java.sql.Statement;
@@ -860,6 +861,10 @@
    protected SQLException checkException(Throwable t) throws SQLException
    {
       Throwable result = null;
+      if (t instanceof AbstractMethodError)
+      {
+         t = new SQLFeatureNotSupportedException("Method is not implemented by JDBC driver", t);
+      }
 
       if (mc != null)
          result = mc.connectionError(t);




More information about the jboss-cvs-commits mailing list