reactive-mybatis-support icon indicating copy to clipboard operation
reactive-mybatis-support copied to clipboard

Bump mybatis-dynamic-sql from 1.4.0 to 1.4.1

Open dependabot[bot] opened this issue 3 years ago • 0 comments

Bumps mybatis-dynamic-sql from 1.4.0 to 1.4.1.

Changelog

Sourced from mybatis-dynamic-sql's changelog.

Release 1.4.1 - October 7, 2022

GitHub milestone: https://github.com/mybatis/mybatis-dynamic-sql/issues?q=milestone%3A1.4.1+

Potentially Breaking Change

In this release we have changed the default behavior of the library in one key area. If a where clause is coded, but fails to render because all the optional conditionals drop out of the where clause, then the library will now throw a NonRenderingWhereClauseException. We have made this change out of an abundance of caution. The prior behavior would allow generation of statements that inadvertently affected all rows in a table.

We have also deprecated the "empty callback" functions in the "in" conditions in favor of this new configuration strategy. The "empty callback" methods were effective for "in" conditions that failed to render, but they offered no help for other conditions that failed to render, or if all conditions fail to render - which is arguably a more dangerous outcome. If you were using any of these methods, you should remove the calls to those methods and catch the new NonRenderingWhereClauseException.

If you desire the prior behavior where non rendering where clauses are allowed, you can change the global configuration of the library or - even better - change the configuration of individual statements where this behavior should be allowed.

For examples of global and statement configuration, see the "Configuration of the Library" page.

Other Changes

  1. Added support for criteria groups without an initial criteria. This makes it possible to create an independent list of pre-created criteria and then add the list to a where clause. See the tests in the related pull request for usage examples. (#462)
  2. Added the ability to specify a table alias on DELETE and UPDATE statements. This is especially useful when working with a sub-query with an exists or not exists condition. (#489)
  3. Updated the Kotlin DSL to use Kotlin 1.7's new "definitely non-null" types where appropriate. This helps us to more accurately represent the nullable/non-nullable expectations for API method calls. (#496)
  4. Added the ability to configure the library and change some default behaviors. Currently, this is limited to changing the behavior of the library in regard to where clauses that will not render. See the "Configuration of the Library" page for details. (#515)
  5. Added several checks for invalid SQL (#516)
  6. Added documentation for the various exceptions thrown by the library (#517)
  7. Update the "insertSelect" method in the Kotlin DSL to make it consistent with the other insert methods (#524)
Commits
  • ef3769e [maven-release-plugin] prepare release mybatis-dynamic-sql-1.4.1
  • 24e4832 Update Release Date
  • 727dec6 Merge pull request #540 from mybatis/renovate/test.containers.version
  • 64b9cb6 Update test.containers.version to v1.17.5
  • 6647a9a Merge pull request #539 from mybatis/renovate/ch.qos.logback-logback-classic-1.x
  • 9b15c2d Update dependency ch.qos.logback:logback-classic to v1.4.3
  • c0a6a69 Merge pull request #538 from mybatis/renovate/test.containers.version
  • 88aee81 Update test.containers.version to v1.17.4
  • bb96f41 Merge pull request #537 from mybatis/renovate/kotlin.version
  • 2eabb48 Update kotlin.version to v1.7.20
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

dependabot[bot] avatar Oct 07 '22 19:10 dependabot[bot]