Skip to content

Commit

Permalink
Fix count execute query
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-vd committed May 10, 2023
1 parent 0e938ef commit 7be4633
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public String getCountExecuteQuery(String mainCondition, String filters) {
strFilters = String.format(" WHERE (" + getDemographicTable() + ".first_name LIKE '%%%s%%' OR "+getDemographicTable()+ ".last_name LIKE '%%%s%%')", filters, filters);
}

return "SELECT count(" + getChildDetailsTable() + ".id) " +
"FROM " + getChildDetailsTable() + " " + getChildDetailsTable() + " " +
"LEFT JOIN " + getDemographicTable() + " ON " + getChildDetailsTable() + ".id = " + getDemographicTable() + ".base_entity_id " +
return "SELECT count(" + getDemographicTable() + ".id) " +
"FROM " + getDemographicTable() + " " + getDemographicTable() + " " +
"LEFT JOIN " + getChildDetailsTable() + " ON " + getDemographicTable() + ".id = " + getChildDetailsTable() + ".base_entity_id " +
strMainCondition + strFilters;
}

Expand Down

0 comments on commit 7be4633

Please sign in to comment.