From 54666a708b8836f5095b20f442ae450590ea31fd Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Tue, 30 Jan 2024 13:22:58 -0500 Subject: [PATCH 1/2] Add BoundValue implementation --- CHANGELOG.md | 2 + pom.xml | 2 +- .../org/mybatis/dynamic/sql/BoundValue.java | 71 +++++++++++++++++++ .../org/mybatis/dynamic/sql/SqlBuilder.java | 6 +- .../sql/util/kotlin/elements/SqlElements.kt | 5 +- .../dynamic/sql/util/messages.properties | 3 +- .../examples/simple/PersonMapperTest.java | 20 +++++- .../mybatis/dynamic/sql/InvalidSQLTest.java | 13 +++- .../spring/canonical/KotlinElementsTest.kt | 22 +++++- 9 files changed, 137 insertions(+), 7 deletions(-) create mode 100644 src/main/java/org/mybatis/dynamic/sql/BoundValue.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 45967f627..42ce77298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ types - which is a rare usage. Please let us know if this causes an undo hardshi initial enhancement request that inspired this change. As a result of the changes, one method is deprecated in the `BasicColumn` object. If you have implemented any custom functions, please note this deprecation and update your code accordingly. ([#662](https://github.com/mybatis/mybatis-dynamic-sql/pull/662)) +2. Added the ability to code a bound value in rendered SQL. This is similar to a constant, but the value is added to + the parameter map and a bind parameter marker is rendered. ## Release 1.5.0 - April 21, 2023 diff --git a/pom.xml b/pom.xml index 6bf569098..40db86948 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@