Fix #18035 - getting type null exception on user feed (#18036)

This commit is contained in:
sonika-shah 2024-09-29 10:24:46 +05:30 committed by GitHub
parent baa2781619
commit 35bef5669a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1402,7 +1402,7 @@ public interface CollectionDAO {
+ " SELECT te.type, te.taskStatus, te.id " + " SELECT te.type, te.taskStatus, te.id "
+ " FROM thread_entity te " + " FROM thread_entity te "
+ " WHERE MATCH(te.taskAssigneesIds) AGAINST (:userTeamJsonMysql IN BOOLEAN MODE) " + " WHERE MATCH(te.taskAssigneesIds) AGAINST (:userTeamJsonMysql IN BOOLEAN MODE) "
+ ") AS combined " + ") AS combined WHERE combined.type is not NULL "
+ "GROUP BY combined.type, combined.taskStatus;", + "GROUP BY combined.type, combined.taskStatus;",
connectionType = MYSQL) connectionType = MYSQL)
@ConnectionAwareSqlQuery( @ConnectionAwareSqlQuery(
@ -1436,7 +1436,7 @@ public interface CollectionDAO {
+ " SELECT te.type, te.taskStatus, te.id " + " SELECT te.type, te.taskStatus, te.id "
+ " FROM thread_entity te " + " FROM thread_entity te "
+ " WHERE to_tsvector('simple', taskAssigneesIds) @@ to_tsquery('simple', :userTeamJsonPostgres) " + " WHERE to_tsvector('simple', taskAssigneesIds) @@ to_tsquery('simple', :userTeamJsonPostgres) "
+ ") AS combined " + ") AS combined WHERE combined.type is not NULL "
+ "GROUP BY combined.type, combined.taskStatus;", + "GROUP BY combined.type, combined.taskStatus;",
connectionType = POSTGRES) connectionType = POSTGRES)
@RegisterRowMapper(OwnerCountFieldMapper.class) @RegisterRowMapper(OwnerCountFieldMapper.class)