Subject parameter mismatch in calling procedure
Author Ronaldo Rezende Vilela Luiz
I'm receiving this error when I try to compile a after insert trigger
with this code:

execute procedure INSERIR_ALUNOS_EM_DIARIO(new.ID_CURSO,
new.ID_DISCIPLINA,
new.ID_FASE,
new.ID_TURMA);
--------------
Invalid token.
invalid request BLR at offset 230.
parameter mismatch for procedure INSERIR_ALUNOS_EM_DIARIO.


What's wrong?


my full code:
--------
CREATE TRIGGER FALTA_APOS_INSERIR FOR FALTA
ACTIVE AFTER INSERT POSITION 0
as
begin
if (not exists(select * from DIARIO_ALUNO
where ID_CURSO = new.ID_CURSO and
ID_DISCIPLINA = new.ID_DISCIPLINA and
ID_FASE = new.ID_FASE and
ID_TURMA = new.ID_TURMA and
ID_ALUNO = new.ID_ALUNO)) then
execute procedure INSERIR_ALUNOS_EM_DIARIO(new.ID_CURSO,
new.ID_DISCIPLINA,
new.ID_FASE,
new.ID_TURMA);
if (new.ABONADA = 1) then
update DIARIO_ALUNO set QTD_FALTA_DIARIO = QTD_FALTA_DIARIO +1,
QTD_FALTA_NAO_ABONADA =
QTD_FALTA_NAO_ABONADA + 1
where ID_CURSO = new.ID_CURSO and
ID_DISCIPLINA = new.ID_DISCIPLINA and
ID_FASE = new.ID_FASE and
ID_TURMA = new.ID_TURMA and
ID_ALUNO = new.ID_ALUNO;
else
update DIARIO_ALUNO set QTD_FALTA_DIARIO = QTD_FALTA_DIARIO +1
where ID_CURSO = new.ID_CURSO and
ID_DISCIPLINA = new.ID_DISCIPLINA and
ID_FASE = new.ID_FASE and
ID_TURMA = new.ID_TURMA and
ID_ALUNO = new.ID_ALUNO;
end