Repository navigation
Version 2.9.0
Driver
Changed
-
[BREAKING]
noticeHandleronOctaviusPropertiesandOctaviusDataSourcetakes aNoticeHandlerinstance,
shared by every connection opened with it. The class name it took is nownoticeHandlerClassName, there and in
the URL. -
[BREAKING] A session used after
close()raisesInvalidOperationException(RESOURCE_CLOSED), where it raised
NetworkException(CONNECTION_CLOSED). Afterabort()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.NESTEDmethod raises
NetworkException(CONNECTION_ABORTED)at its commit when the connection is gone, where it could raise Spring's
UnexpectedRollbackException. -
A class named by
noticeHandlerClassNameis found on a thread with no context class loader, where the connection
failed with anInitializationExceptioncaused by aNullPointerException. -
A server certificate that
VERIFY_CAorVERIFY_FULLrefuses isInitializationException(SSL_ERROR), where
SSLHandshakeExceptionleft the connection attempt as it was. -
An unchecked exception from a
DataSourceleavesDataSource.getOctaviusSession()as
InitializationException(CONNECTION_ERROR), as it leavesOctaviusTemplateandOctaviusJdbcTransactionManager,
where it came through as it was. -
A session whose connection went back before it closed refuses everything with
InvalidOperationException(RESOURCE_CLOSED), wherecreateNativeQueryran on the next borrower's connection.
Itsclose()leaves the connection alone and logs awarn, where it rolled back that borrower's transaction.
Client
Added
toCountQuery()on aselectreturns a query counting the rows it matches across every page, the total a paged
list shows beside the page.