boolean assertAutoCommit ( ) { if ( ! assertConnection ( ) ) { return false ; } try { if ( getDatabaseConnection ( ) . connection . getAutoCommit ( ) ) { return error ( loc ( "autocommit-needs-off" ) ) ; } } catch ( Exception e ) { return error ( e ) ; } return true ; }
Ensure that autocommit is on for the current connection