@@ -42,9 +42,9 @@ abstract class ExtendedStatement extends PreparedStatementDelegator {
4242 public Connection getConnection () throws SQLException {
4343 try {
4444 return delegate .getConnection ();
45- } catch (SQLException e ) {
46- pooledConnection .markWithError ();
47- throw e ;
45+ } catch (SQLException ex ) {
46+ pooledConnection .markWithError (ex );
47+ throw ex ;
4848 }
4949 }
5050
@@ -56,9 +56,9 @@ public void addBatch(String sql) throws SQLException {
5656 try {
5757 pooledConnection .setLastStatement (sql );
5858 delegate .addBatch (sql );
59- } catch (SQLException e ) {
60- pooledConnection .markWithError ();
61- throw e ;
59+ } catch (SQLException ex ) {
60+ pooledConnection .markWithError (ex );
61+ throw ex ;
6262 }
6363 }
6464
@@ -70,9 +70,9 @@ public boolean execute(String sql) throws SQLException {
7070 try {
7171 pooledConnection .setLastStatement (sql );
7272 return delegate .execute (sql );
73- } catch (SQLException e ) {
74- pooledConnection .markWithError ();
75- throw e ;
73+ } catch (SQLException ex ) {
74+ pooledConnection .markWithError (ex );
75+ throw ex ;
7676 }
7777 }
7878
@@ -84,9 +84,9 @@ public ResultSet executeQuery(String sql) throws SQLException {
8484 try {
8585 pooledConnection .setLastStatement (sql );
8686 return delegate .executeQuery (sql );
87- } catch (SQLException e ) {
88- pooledConnection .markWithError ();
89- throw e ;
87+ } catch (SQLException ex ) {
88+ pooledConnection .markWithError (ex );
89+ throw ex ;
9090 }
9191 }
9292
@@ -98,9 +98,9 @@ public int executeUpdate(String sql) throws SQLException {
9898 try {
9999 pooledConnection .setLastStatement (sql );
100100 return delegate .executeUpdate (sql );
101- } catch (SQLException e ) {
102- pooledConnection .markWithError ();
103- throw e ;
101+ } catch (SQLException ex ) {
102+ pooledConnection .markWithError (ex );
103+ throw ex ;
104104 }
105105 }
106106
0 commit comments