spring-data-relational
spring-data-relational copied to clipboard
findByXxxIn generates invalid SQL when the Collection is empty [DATAJDBC-567]
trafficstars
Veli-Pekka Muli opened DATAJDBC-567 and commented
The generated SQL is WHERE "myschema"."mytable"."mycolumn" IN ()
Affects: 2.0.1 (Neumann SR1)
I am not able to reproduce it - If the passed Collection is empty, then generated SQL will be:
SELECT COUNT(*) FROM "schema"."table" WHERE 1 = 0