Repository navigation
Update sadu to v2.4.2 - #266
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/sadu
branch
from
November 7, 2026 17:49
db9f619 to
ac9aaa3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.3.9→2.4.22.3.9→2.4.22.3.9→2.4.22.3.9→2.4.2Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
rainbowdashlabs/sadu (de.chojo.sadu:sadu-postgresql)
v2.4.2: 2.4.2SADU 2.4.2
Rows that cannot be mapped now reach your exception handler like every other query error.
Before updating
setThrowExceptions(false)(the default), a read whose rows cannot be mapped no longer throwsMappingExceptionat the caller. It returns an empty result, and the error goes to the exception handler and the result's exceptions. Code that caughtMappingExceptionaround a query will not see it any more.Bugfixes
MappingExceptionskipped the exception handler: errors frommapAsandmapare passed to the handler set withsetExceptionHandler, followsetThrowExceptionsand show up inhasExceptions()andexceptions()of the result.Improvements
Developer notes
QueryExceptionwhosegetCause()is theMappingException, and whose message contains the SQL of the query. Check the cause to tell mapping errors apart from database errors.setThrowExceptions(true), the error is thrown asWrappedQueryExecutionException, with theQueryExceptionas its cause.QueryExceptionpasses SQL state and error code toSQLException.getSQLState()andgetErrorCode()return the same values as before for database errors andnulland0for mapping errors.v2.4.1: 2.4.1SADU 2.4.1
A small one: mappers marked with
@MappingProvider("")map rows again, as they did before 2.4.0.Bugfixes
MappingException: No mapper present for columns …with@MappingProvider(""): a mapping with a blank column is a wildcard again and is used for every result.Improvements
@MappingProvider,addColumnoraddColumnsare ignored with a warning in the log.Developer notes
@MappingProvidertakes no columns by default. A bare@MappingProviderdeclares a wildcard mapping and is the preferred form over@MappingProvider("").mapAsthrowsMappingException. This release does not change that.v2.4.0: 2.4.0SADU 2.4.0
A big cleanup release: SADU now needs Java 21, its docs moved to docs.chojo.dev, and more than twenty bugs found while rewriting those docs are fixed. Transactions, batches and mappers now do what the docs always said they do.
Before updating
sadu-testingneed JUnit 6 on their test class path.setAtomic(false),withConnection,PatchChecksormapAs.Features
/, spaces,&or=work. Read them with the newdriverProperties().uuidcolumns map toUUID(newPostgreSqlTypes.UUID).sslpassword(String): replacessslpassword(int), which is deprecated.Improvements
de.chojo.sadu:sadunow contains every module exceptsadu-testing, includingsadu-queries.mainpublishes a-SNAPSHOTbuild; releases go to Maven Central and EldoNexus.database/versionor patch file names the file before any patch runs, andPatchChecksreports a file missing for one database.setAtomic(false)means auto commit again, as in 1.x, and failed atomic work is rolled back.withConnectionsets auto commit from the atomic setting before the first query, and only commits or rolls back when auto commit is off.mapAsuses a wildcard mapper or throwsMappingExceptioninstead of picking a mapper whose columns don't fit.Bugfixes
hasExceptions()andisSuccess()see the query's exceptions.INSTANT_FROM_MILLISandINSTANT_FROM_SECONDSreturnnullforNULL.smallserial,serial,bigserial) map to numbers; integer aliases are int2, int4 and int8, andcount(*)read asIntegerkeeps working.Byte[]reads BINARY, VARBINARY and BLOB columns.ArrayConverter.toSetreturns the elements, andRow.getListand the other list methods allowNULLelements.@MappingProviderconstructors that throw keep their exception as the cause.setup.sqland each patch happen inside their own transaction.#driverClass.Developer notes
MariaDbJdbc#jdbcUrl()andSqLiteJdbc#jdbcUrl()no longer contain the parameters; callers outsideDataSourceCreatorneeddriverProperties(). WithwithHikariConfigyou replace the driver properties too.isSuccess()can now returnfalsewhere it returnedtruebefore, andPatchCheckscan fail on projects that passed before.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.