Skip to content
Snippets Groups Projects
Commit ffb65bed authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

:fire: Remove COALESCE from query in enrollment.js

parent 41c2ba99
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -273,7 +273,7 @@ rqf.addField({ ...@@ -273,7 +273,7 @@ rqf.addField({
enrollmentApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { enrollmentApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
log.debug(req.sql.toParam()); log.debug(req.sql.toParam());
req.sql.field('COALESCE(COUNT(matricula.id), 0)', 'total') req.sql.field('COUNT(matricula.id)', 'total')
.field("'Brasil'", 'name') .field("'Brasil'", 'name')
.field('matricula.ano_censo', 'year') .field('matricula.ano_censo', 'year')
.from('matricula') .from('matricula')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment