Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1473

WrappedConnection dont obey method contract, just throw SQLException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.4.Final
    • 3.0.3.Final
    • None
    • None

      Most methods in WrappedConnection inherit jdoc from interface. However, checkStatus() does more than check for connection and its state( not closed), it requires transaction to be in certain state. THis does more than jdoc contract state, so methods like getAutoCommit(), getTransactionIsolation etc will throw SQL Exception if transation is not open/no transaction etc, as per: https://github.com/oloake/IronJacamar/blob/master/adapters/src/main/java/org/jboss/jca/adapters/jdbc/WrapperDataSource.java#L237

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-cservice-bbaranow Bartosz Baranowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: