home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
tema
/
SW602
/
Winbase
/
EShop_demo
/
TEST_PROFIL.TRG
< prev
next >
Wrap
Text File
|
2000-03-16
|
735b
|
28 lines
{$$3219993938 . }TRIGGER `test_profil` AFTER UPDATE ON `Sys_par`
REFERENCING OLD AS `old` NEW AS `new`
FOR EACH ROW
BEGIN //0
DECLARE res INT;
DECLARE heslo CHAR(20);
IF ((new.mailovat=true) AND (new.PROFIL<>old.PROFIL)) THEN
BEGIN //1
SET heslo=NULL;
SET res= InitWBmail(new.Profil,heslo);
IF res<>0 THEN
begin
CALL log_write("chyba inicializace poÜty "+int2str(res));
CALL log_write(new.Profil);
CALL mailerr(res);
end;
ELSE
begin
CALL log_write("Inicializace poÜty s profilem "+new.Profil+" prob∞hla ·sp∞Ün∞.");
CALL CloseWBMail;
end;
END IF;
end; //1
END IF;
END //0