Problem
Actually the issue 2548 has not been completely resolved!
PersistenceProvider#condense(Object) returns an empty string, so then the query
@Query(SELECT t FROM My_Table t WHERE (:param is NULL or t.attr LIKE %:param%))
will transform into select my_table.id, ..., my_table.attr as attrN from my_table where '%%' is null or my_table.attr like '%%' whereas in spring-data-jpa 2.6.4 or earlier it will transform to select my_table.id, ..., my_table.attr as attrN from my_table where NULL is null or my_table.attr like NULL
Problem
Actually the issue 2548 has not been completely resolved!
PersistenceProvider#condense(Object)returns an empty string, so then the query@Query(SELECT t FROM My_Table t WHERE (:param is NULL or t.attr LIKE %:param%))will transform into
select my_table.id, ..., my_table.attr as attrN from my_table where '%%' is null or my_table.attr like '%%'whereas in spring-data-jpa 2.6.4 or earlier it will transform toselect my_table.id, ..., my_table.attr as attrN from my_table where NULL is null or my_table.attr like NULL