[firebase-br] TRIGGUER - ERRO

Cezar Moniz cezar em rtcm.com.br
Ter Maio 3 08:38:42 -03 2016


Prezados.

Não estou conseguindo identificar o erro no ponto e vírgula nesta
trigguer...
Estou querendo gravar o nome da conecção remota em um campo da tabela,
quando for insert ou update, pela triguer.

Alguma orientação?

AS
begin
  select MON$REMOTE_ADDRESS from mon$attachments where mon$attachment_id =
current_connection;
if (inserting) then
    begin
        INSERT INTO tb_audita (NOME_IP, COD_REGISTRO) values
 (MON$REMOTE_ADDRESS), new.codigo_aluno);
    end
end

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Token unknown - line 8, column 36.
*;.*

Obrigado ao grupo.
-- 
[]'s



Mais detalhes sobre a lista de discussão lista