Remove unnecessary parameter.
Remove unnecessary boolean nativeQuery from checkHasNamedParameter of StringQueryUnitTests class. Signed-off-by: hgh1472 <hgh1472@naver.com> Closes #3827 Original pull request: #3828
This commit is contained in:
@@ -932,8 +932,8 @@ class DefaultEntityQueryUnitTests {
|
||||
|
||||
private void checkHasNamedParameter(String query, boolean expected, String label) {
|
||||
|
||||
DeclaredQuery source = nativeQuery ? DeclaredQuery.nativeQuery(query) : DeclaredQuery.jpqlQuery(query);
|
||||
PreprocessedQuery bindableQuery = PreprocessedQuery.ParameterBindingParser.INSTANCE.parse(source.getQueryString(),
|
||||
DeclaredQuery source = DeclaredQuery.jpqlQuery(query);
|
||||
PreprocessedQuery bindableQuery = PreprocessedQuery.ParameterBindingParser.INSTANCE.parse(query,
|
||||
source::rewrite, it -> {});
|
||||
|
||||
assertThat(bindableQuery.getBindings().stream().anyMatch(it -> it.getIdentifier().hasName())) //
|
||||
|
||||
Reference in New Issue
Block a user