task #7524 improve ca

This commit is contained in:
sparkyx 2007-12-13 13:54:16 +00:00
parent 245a62c28c
commit e2751833aa
8 changed files with 87 additions and 4 deletions

View file

@ -52,7 +52,7 @@ if length(trim(NEW.ga_id)) = 0 then
NEW.ga_id:=NULL;
return NEW;
end if;
select ga_id from groupe_analytique where ga_id=NEW.ga_id;
perform 'select ga_id from groupe_analytique where ga_id='||NEW.ga_id;
if NOT FOUND then
raise exception' Inexistent Group Analytic %',NEW.ga_id;
end if;