Fix SQL Bug

This commit is contained in:
sparkyx 2006-07-09 17:04:57 +00:00
parent 91d9a8f9c4
commit 6555000634
2 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ begin
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent)
values (p_account,sName,nParent);
-- insert as card's attribute
attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
perform attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
end if;
else
@ -265,7 +265,7 @@ $$
-- Name: card_class_base(integer); Type: FUNCTION; Schema: public; Owner: phpcompta
--
CREATE FUNCTION card_class_base(p_f_id integer) RETURNS poste_comptable
CREATE FUNCTION card_class_base(p_f_id integer) RETURNS fiche_def.fd_class_base%type
AS $$
declare
@ -277,7 +277,7 @@ begin
if not FOUND then
raise exception 'Invalid fiche card_class_base(%)',p_f_id;
end if;
return;
return nposte;
end;
$$
LANGUAGE plpgsql;