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
version 2.7.8 @transactional(rollbackFor = Exception.class) @Modifying(flushAutomatically = true, clearAutomatically = true) @query(value = "delete u from sys_user u left join sys_org_user_rel rel on rel.user_id = u.user_id where rel.org_struct_id =:orgId and u.user_id = :userId", nativeQuery = true)
void deleteByOrgIdAndId(@param("orgId") long orgId, @param("userId") long userId);
will cause NullPointerException during starting.
org.springframework.data.jpa.repository.query.QueryUtils.createCountQueryFor(QueryUtils.java:607)
but version 2.7.7 is ok.
The text was updated successfully, but these errors were encountered:
geewit
changed the title
native delete query cause NullPointerException
version 2.7.8 native delete query cause NullPointerException
Feb 22, 2023
I have the same - the issue seems to be introduced in this commit 64b5a22
and the problematic statements is variable.contains(",") when variable is null in this line
version 2.7.8
@transactional(rollbackFor = Exception.class)
@Modifying(flushAutomatically = true, clearAutomatically = true)
@query(value = "delete u from sys_user u left join sys_org_user_rel rel on rel.user_id = u.user_id where rel.org_struct_id =:orgId and u.user_id = :userId", nativeQuery = true)
void deleteByOrgIdAndId(@param("orgId") long orgId, @param("userId") long userId);
will cause NullPointerException during starting.
org.springframework.data.jpa.repository.query.QueryUtils.createCountQueryFor(QueryUtils.java:607)
but version 2.7.7 is ok.
The text was updated successfully, but these errors were encountered: