Skip to content

Commit 6db7041

Browse files
authored
GH-8768: Fix countQuery in JdbcMetadataStore
Fixes #8768 The `countQuery` is accidentally formatted against `putIfAbsentValueQuery`
1 parent 82d9ecf commit 6db7041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/metadata/JdbcMetadataStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public void afterPropertiesSet() {
174174
this.replaceValueByKeyQuery = String.format(this.replaceValueByKeyQuery, this.tablePrefix);
175175
this.removeValueQuery = String.format(this.removeValueQuery, this.tablePrefix);
176176
this.putIfAbsentValueQuery = String.format(this.putIfAbsentValueQuery, this.tablePrefix, this.tablePrefix);
177-
this.countQuery = String.format(this.putIfAbsentValueQuery, this.tablePrefix);
177+
this.countQuery = String.format(this.countQuery, this.tablePrefix);
178178
}
179179

180180
/**

0 commit comments

Comments
 (0)