suche 36x36
  • Admin-Scout-small-Banner
           

    CURSOR Admin-Scout

    get the ultimate tool for Informix

    pfeil  
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT28301 Status: Closed

ONMODE -I 746 WILL NOT DETECT A RAISED EXCEPTION -746 INSIDE A SPL CALLED
FROM A TRIGGER ACTION.

product:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problem description:
onmode -I 746 will not detect a raised exception -746 inside a
SPL called from a trigger action.

Repro.

set onmode -I 746

create procedure trigaction(p_id int, p_val int,p_switch
integer);

  if (p_switch = 0) then
    raise exception -746,0,"Value not allowed";
  end if
end procedure;


create table sgtest
(
  id serial,
  val integer not null,
  switch integer
) ;


create trigger ins_sgtest insert on sgtest
referencing new as neu for each row
        (
        execute procedure trigaction(neu.id, neu.val,neu.switch)
 );

Then insert to raise the error.

insert into sgtest values (1, null, 0);

It'll give the -746 error but no AF will be generated.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of IDS prior to 12.10.xC13.                            *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* onmode -I 746 will not detect a raised exception -746 inside *
* a SPL called from a trigger action.                          *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
05.03.2019
24.09.2019
24.09.2019
Problem solved at the following versions (IBM BugInfos)
12.10.xC13
Problem solved according to the fixlist(s) of the following version(s)
Informix EditionsInformix Editions
Informix Editions
DocumentationDocumentation
Documentation
IBM NewsletterIBM Newsletter
IBM Newsletter
Current BugsCurrent Bugs
Current Bugs
Bug ResearchBug Research
Bug Research
Bug FixlistsBug Fixlists
Bug Fixlists
Release NotesRelease Notes
Release Notes
Machine NotesMachine Notes
Machine Notes
Release NewsRelease News
Release News
Product LifecycleProduct Lifecycle
Lifecycle
Media DownloadMedia Download
Media Download