[jboss-cvs] JBossAS SVN: r96378 - branches/Branch_5_x/connector/src/main/org/jboss/resource/adapter/jdbc.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 13 16:33:08 EST 2009
Author: smarlow at redhat.com
Date: 2009-11-13 16:33:08 -0500 (Fri, 13 Nov 2009)
New Revision: 96378
Modified:
branches/Branch_5_x/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
Log:
JBAS-7439 - jdbc3 driver error handling
Modified: branches/Branch_5_x/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
===================================================================
--- branches/Branch_5_x/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java 2009-11-13 20:36:41 UTC (rev 96377)
+++ branches/Branch_5_x/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java 2009-11-13 21:33:08 UTC (rev 96378)
@@ -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