This is an automated email from the ASF dual-hosted git repository. chengzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push: new 978f4103134 Minor refactor for ParameterMarkerProjection (#36515) 978f4103134 is described below commit 978f4103134ea98771806312f9acef9e05c20f01 Author: Zhengqiang Duan <duanzhengqi...@apache.org> AuthorDate: Wed Sep 10 16:03:54 2025 +0800 Minor refactor for ParameterMarkerProjection (#36515) --- .../segment/select/projection/impl/ParameterMarkerProjection.java | 2 +- .../segment/select/projection/impl/ParameterMarkerProjectionTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/binder/core/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjection.java b/infra/binder/core/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjection.java index cf61738f85b..d0f0973886a 100644 --- a/infra/binder/core/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjection.java +++ b/infra/binder/core/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjection.java @@ -44,7 +44,7 @@ public final class ParameterMarkerProjection implements Projection { @Override public String getColumnName() { - return String.valueOf(parameterMarkerIndex); + return getColumnLabel(); } @Override diff --git a/infra/binder/core/src/test/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjectionTest.java b/infra/binder/core/src/test/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjectionTest.java index f580e1e4cb6..42b672adac2 100644 --- a/infra/binder/core/src/test/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjectionTest.java +++ b/infra/binder/core/src/test/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/ParameterMarkerProjectionTest.java @@ -31,7 +31,7 @@ class ParameterMarkerProjectionTest { @Test void assertGetColumnName() { - assertThat(new ParameterMarkerProjection(1, ParameterMarkerType.QUESTION, new IdentifierValue("foo")).getColumnName(), is("1")); + assertThat(new ParameterMarkerProjection(1, ParameterMarkerType.QUESTION, new IdentifierValue("foo")).getColumnName(), is("foo")); } @Test