Skip to content

Commit

Permalink
use + instead of concat in sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Dec 17, 2024
1 parent 061a38c commit 7de56d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/common.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export const fetchEntryIssueCounts = fetchMany({
const resourceIds = Object.values(mostRecentResources).map(resource => resource.resource)

return `
select dataset, field, i.issue_type, COUNT(CONCAT(resource, line_number)) as count
select dataset, field, i.issue_type, COUNT(resource + line_number) as count
from issue i
LEFT JOIN issue_type it ON i.issue_type = it.issue_type
WHERE resource in ('${resourceIds.join("', '")}')
Expand Down

0 comments on commit 7de56d1

Please sign in to comment.