Repository navigation
Version 2.7.0
Driver
Fixed
-
SqlScript.splitkeeps aBEGIN ATOMIC ... ENDbody whole inside itsCREATE FUNCTIONorCREATE PROCEDURE,
where it cut the body at every;. -
Closing a session opened with
getOctaviusSession(ownsConnection = false)leaves the transaction its connection
was already in for the connection's owner to end. It rolled that transaction back, and the owner'scommit()
then returned normally with the work gone. A transaction the session began itself is still rolled back. -
OctaviusTemplateunder a transaction manager with synchronization switched off leaves its work for Spring to
commit, where eachexecuterolled the transaction back as its session closed. -
A session
OctaviusTemplatebinds where there is synchronization but no transaction, as under
PROPAGATION_SUPPORTS, ends before Spring gives the connection back. Its reset ran on a connection already back
in the pool. -
Propagation.NESTEDinside a running transaction takes a savepoint and raises the same exceptions asREQUIRED,
where it threwInvalidOperationException(FEATURE_NOT_SUPPORTED)before the nested method ran. -
A commit whose connection goes during the
COMMITraisesNetworkException(CONNECTION_ABORTED), as one on a
connection already gone does, where it raisedTransactionSystemException. -
A pool that fails to start on the first borrow, for a reason with nothing of the driver's in it, leaves
OctaviusTemplateandOctaviusJdbcTransactionManagerasInitializationException(CONNECTION_ERROR). Hikari's
PoolInitializationExceptioncame through as it was, or insideCannotCreateTransactionException.
Changed
-
[BREAKING]
OctaviusTemplateandOctaviusJdbcTransactionManagerwrap nothing: the driver's exceptions and
your own leave them as they were thrown, where anOctaviusDataAccessExceptionstood around the driver's, and
around yours when one of the driver's was its cause.OctaviusDataAccessExceptionis gone: an
@ExceptionHandleror acatchnames the driver's type, orOctaviusExceptionfor all of them. -
[BREAKING]
OctaviusTemplatetakes no exception translator, and its constructor is
OctaviusTemplate(dataSource).OctaviusExceptionTranslatoris gone. -
[BREAKING]
OctaviusJdbcTransactionManagerextendsAbstractPlatformTransactionManagerinstead of
JdbcTransactionManager. It has none of the propertiesJdbcTransactionManagerandDataSourceTransactionManager
add -exceptionTranslator,lazyInit,databaseProductName,enforceReadOnly- and a
TransactionManagerCustomizertyped to either of them does not reach it. Boot'sspring.transaction.*still does. -
startPollingListenerLoopandstartInterruptibleListenerLoopthrowInvalidOperationException(CONNECTION_BUSY)
when a transaction is open on the server, where such a loop waited without ever receiving anything: PostgreSQL
holds notifications back until the listener's transaction ends. -
getMetaData()returns aDatabaseMetaDatathat answerssupportsSavepoints()withtrueand
getDatabaseProductName()withPostgreSQL, and throwsInvalidOperationException(FEATURE_NOT_SUPPORTED)from
every other method, wheregetMetaData()itself threw it. Actuator'sdbhealth indicator reportsUPwith no
connection-test-queryset, so adbHealthIndicatorbean declared in its place, as the docs advised, can go.
Migrations
Fixed
- A
.sqlmigration that defines a function or procedure with aBEGIN ATOMICbody runs, where the scan took the
body's closingENDfor aCOMMITand refused the file.