Commit 8fe36c30188da9c0bffa9d39c6f5ece8f32c97f1
Exists in
master
Merge branch 'master' into 'master'
Merge: Correção ao adicionar componente curricular Referente a issue #48 See merge request !35
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
ieducar/modules/Avaliacao/Fixups/CleanComponentesCurriculares.php
| ... | ... | @@ -99,8 +99,8 @@ class CleanComponentesCurriculares { |
| 99 | 99 | if (is_Numeric($cod_matricula)) |
| 100 | 100 | $filtro .= " m.cod_matricula = {$cod_matricula} AND "; |
| 101 | 101 | |
| 102 | - $sql = "delete from modules.nota_componente_curricular_media where nota_aluno_id||componente_curricular_id in ( | |
| 103 | - select nccm.nota_aluno_id|| nccm.componente_curricular_id from modules.nota_componente_curricular_media as nccm, | |
| 102 | + $sql = "delete from modules.nota_componente_curricular_media where nota_aluno_id::varchar||componente_curricular_id::varchar in ( | |
| 103 | + select nccm.nota_aluno_id::varchar|| nccm.componente_curricular_id::varchar from modules.nota_componente_curricular_media as nccm, | |
| 104 | 104 | modules.nota_aluno as na, |
| 105 | 105 | pmieducar.matricula as m, |
| 106 | 106 | pmieducar.matricula_turma as mt |
| ... | ... | @@ -177,4 +177,4 @@ class CleanComponentesCurriculares { |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | } |
| 180 | -?> | |
| 181 | 180 | \ No newline at end of file |
| 181 | +?> | ... | ... |