Skip to content
Snippets Groups Projects
Commit 608c3802 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[TEST] Trying to modify the order of 'order by' in query exec

parent f6620da0
No related branches found
No related tags found
3 merge requests!391Hom -> Prod,!390dev -> homologa,!389new_pnad -> dev
...@@ -297,16 +297,6 @@ rqf.addField({ ...@@ -297,16 +297,6 @@ rqf.addField({
foreign: 'cod_uf', foreign: 'cod_uf',
foreignTable: 'pnad_novo' foreignTable: 'pnad_novo'
} }
}).addValue({
name: 'illiteracy',
table: 'pnad_novo',
tableField: 'analfabetismo',
resultField: 'illiteracy_id',
where: {
relation: '=',
type: 'integer',
field: 'analfabetismo'
}
}).addValue({ }).addValue({
name: 'years_of_study', name: 'years_of_study',
table: 'pnad_novo', table: 'pnad_novo',
...@@ -367,6 +357,16 @@ rqf.addField({ ...@@ -367,6 +357,16 @@ rqf.addField({
type: 'integer', type: 'integer',
field: 'nivel_etapa_modalidade_freq' field: 'nivel_etapa_modalidade_freq'
} }
}).addValue({
name: 'illiteracy',
table: 'pnad_novo',
tableField: 'analfabetismo',
resultField: 'illiteracy_id',
where: {
relation: '=',
type: 'integer',
field: 'analfabetismo'
}
}).addValue({ }).addValue({
name: 'modality_shift', name: 'modality_shift',
table: 'pnad_novo', table: 'pnad_novo',
...@@ -518,6 +518,6 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -518,6 +518,6 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.order('pnad_novo.ano_ref') .order('pnad_novo.ano_ref')
console.log(req.sql.toString()) console.log(req.sql.toString())
next(); next();
}, query, id2str.transform(false),response('pnad_novo')); }, query, id2str.transform(false), response('pnad_novo'));
module.exports = PnadNovoApp; module.exports = PnadNovoApp;
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