Skip to content

Version 2.9.0

Choose a tag to compare

@CaesarAugustus27 CaesarAugustus27 released this 04 Nov 18:02
· 123 commits to master since this release

Driver

Changed

  • [BREAKING] noticeHandler on OctaviusProperties and OctaviusDataSource takes a NoticeHandler instance,
    shared by every connection opened with it. The class name it took is now noticeHandlerClassName, there and in
    the URL.

  • [BREAKING] A session used after close() raises InvalidOperationException(RESOURCE_CLOSED), where it raised
    NetworkException(CONNECTION_CLOSED). After abort() it still raises that one.

  • A statement allocates less, encoding its text once instead of twice.

Fixed

  • A transaction that carries on past a failed Propagation.NESTED method raises
    NetworkException(CONNECTION_ABORTED) at its commit when the connection is gone, where it could raise Spring's
    UnexpectedRollbackException.

  • A class named by noticeHandlerClassName is found on a thread with no context class loader, where the connection
    failed with an InitializationException caused by a NullPointerException.

  • A server certificate that VERIFY_CA or VERIFY_FULL refuses is InitializationException(SSL_ERROR), where
    SSLHandshakeException left the connection attempt as it was.

  • An unchecked exception from a DataSource leaves DataSource.getOctaviusSession() as
    InitializationException(CONNECTION_ERROR), as it leaves OctaviusTemplate and OctaviusJdbcTransactionManager,
    where it came through as it was.

  • A session whose connection went back before it closed refuses everything with
    InvalidOperationException(RESOURCE_CLOSED), where createNativeQuery ran on the next borrower's connection.
    Its close() leaves the connection alone and logs a warn, where it rolled back that borrower's transaction.

Client

Added

  • toCountQuery() on a select returns a query counting the rows it matches across every page, the total a paged
    list shows beside the page.