-
Notifications
You must be signed in to change notification settings - Fork 356
Associate value with isTrue
/isFalse
criteria operators
#1188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text.
Reduce test method visibility.
I'd like to have an integration test for this because the past has shown that not all databases properly understand booleans. |
There is one in place, see |
@@ -427,19 +440,44 @@ void mapQueryForEnumArrayShouldMapToStringList() { | |||
assertThat(bindings.getCondition()).hasToString("person.enum_value IN (?[$1], ?[$2])"); | |||
} | |||
|
|||
@Test // gh-733 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These test are in the R2DBC part, but the changes are for JDBC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the changes are in Relational but we don't have a query mapper for Spring Data Relational and we never ensured in R2DBC how isTrue
is bound in R2DBC. The JDBC counterpart should be in #908.
The changes in the Criteria
API are now covered with additional assertions and the JDBC change went into effect with #908.
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text. Orginal pull request #1188
Reduce test method visibility. Orginal pull request #1188
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text. Orginal pull request #1188
Reduce test method visibility. Orginal pull request #1188
Merged and ported to main. |
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text.
Should be also backported to
main
.Related issue: spring-projects/spring-data-r2dbc#733