"pDisparaFuncao(6,serviço)"
It happens that either using a custom NoticeProcessor (using SetNoticeProcessor method) or using the DefaultNoticeProcessor, my application receives the following message:
"pDisparaFuncao(6,serviço)"
Just created a varchar funcion at PostgreSQL as follows:
Code: Select all
CREATE OR REPLACE FUNCTION sigh.f_notice_sem_acento()
RETURNS varchar AS
$BODY$
declare
begin
raise notice 'pDisparaFuncao(6,%)', 'serviço';
return '';
end
$BODY$
LANGUAGE 'plpgsql' VOLATILE;
GRANT EXECUTE ON FUNCTION sigh.f_notice_sem_acento() TO public;
select sigh.f_notice_sem_acento();
Here is the app code for SetNoticeProcessor:
Code: Select all
procedure pNoticeProcessor(arg: Pointer; AMessage: PAnsiChar); cdecl;
var
s: string;
begin
s := AMessage;
pAviso(s);
end;
procedure TdtmPadrao.pSetNoticeProcessor;
begin
(dbPadrao.DbcConnection as IZPostgreSQLConnection).GetPlainDriver.SetNoticeProcessor(
(dbPadrao.DbcConnection as IZPostgreSQLConnection).GetConnectionHandle
, pNoticeProcessor
, Self
);
Thanks in advance.