GH-8768: Fix countQuery in JdbcMetadataStore

Fixes https://github.com/spring-projects/spring-integration/issues/8768

The `countQuery` is accidentally formatted against `putIfAbsentValueQuery`
This commit is contained in:
Igor Dianov
2023-10-18 06:57:49 -07:00
committed by GitHub
parent 82d9ecfb75
commit 6db704158f

View File

@@ -174,7 +174,7 @@ public class JdbcMetadataStore implements ConcurrentMetadataStore, InitializingB
this.replaceValueByKeyQuery = String.format(this.replaceValueByKeyQuery, this.tablePrefix);
this.removeValueQuery = String.format(this.removeValueQuery, this.tablePrefix);
this.putIfAbsentValueQuery = String.format(this.putIfAbsentValueQuery, this.tablePrefix, this.tablePrefix);
this.countQuery = String.format(this.putIfAbsentValueQuery, this.tablePrefix);
this.countQuery = String.format(this.countQuery, this.tablePrefix);
}
/**