You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`IsTrue` and `IsFalse` queries no longer use a literal in the query, but a bind parameter.
This allows Spring Data JDBC or the JDBC driver to convert the passed boolean value to whatever is required in the database.
For Oracle converter where added to support storing and loading booleans as NUMBER(1,0) where 0 is false and everything else is true.
Closes#908
Original pull request #983
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java
+17
Original file line number
Diff line number
Diff line change
@@ -492,6 +492,19 @@ public void pageQueryProjectionShouldReturnProjectedEntities() {
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQueryUnitTests.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
importjava.util.List;
28
28
importjava.util.Properties;
29
29
30
+
importorg.junit.jupiter.api.Disabled;
30
31
importorg.junit.jupiter.api.Test;
31
32
importorg.junit.jupiter.api.extension.ExtendWith;
32
33
importorg.mockito.junit.jupiter.MockitoExtension;
@@ -457,7 +458,7 @@ public void createsQueryToFindAllEntitiesByBooleanAttributeTrue() throws Excepti
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-db2.sql
+2-1
Original file line number
Diff line number
Diff line change
@@ -5,5 +5,6 @@ CREATE TABLE dummy_entity
5
5
id_Prop BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY,
6
6
NAME VARCHAR(100),
7
7
POINT_IN_TIME TIMESTAMP,
8
-
OFFSET_DATE_TIME TIMESTAMP-- with time zone is only supported with z/OS
8
+
OFFSET_DATE_TIME TIMESTAMP, -- with time zone is only supported with z/OS
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-h2.sql
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,6 @@ CREATE TABLE dummy_entity
3
3
id_Prop BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY,
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-hsql.sql
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,6 @@ CREATE TABLE dummy_entity
3
3
id_Prop BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY,
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-mariadb.sql
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-mssql.sql
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-oracle.sql
+2-1
Original file line number
Diff line number
Diff line change
@@ -5,5 +5,6 @@ CREATE TABLE DUMMY_ENTITY
5
5
ID_PROP NUMBER GENERATED BY DEFAULT ONNULLAS IDENTITY PRIMARY KEY,
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIntegrationTests-postgres.sql
0 commit comments