View | Details | Raw Unified | Return to bug 61425
Collapse All | Expand All

(-)a/org/apache/tomcat/jdbc/pool/PooledConnection.java (+16 lines)
Lines 541-546 public class PooledConnection { Link Here
541
            }
541
            }
542
            if (stmt!=null)
542
            if (stmt!=null)
543
                try { stmt.close();} catch (Exception ignore2){/*NOOP*/}
543
                try { stmt.close();} catch (Exception ignore2){/*NOOP*/}
544
545
            try {
546
                if(!connection.getAutoCommit()) {
547
                    connection.rollback();
548
                }
549
            } catch (SQLException e) {
550
                // do nothing
551
            }
552
        } finally {
553
            try {
554
                if(!connection.getAutoCommit()) {
555
                    connection.commit();
556
                }
557
            } catch (SQLException e) {
558
                // do nothing
559
            }
544
        }
560
        }
545
        return false;
561
        return false;
546
    } //validate
562
    } //validate

Return to bug 61425