Correct upgrade72.sql, a function has been forgotten
This commit is contained in:
parent
3a9221bc22
commit
bfda48e10e
1 changed files with 16 additions and 0 deletions
|
|
@ -731,6 +731,22 @@ begin
|
|||
end loop;
|
||||
return 'CON';
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
DROP FUNCTION comptaproc.fiche_account_parent(integer);
|
||||
|
||||
CREATE OR REPLACE FUNCTION comptaproc.fiche_account_parent(p_f_id integer)
|
||||
RETURNS account_type AS
|
||||
$BODY$
|
||||
declare
|
||||
ret tmp_pcmn.pcm_val%TYPE;
|
||||
begin
|
||||
select fd_class_base into ret from fiche_def join fiche using (fd_id) where f_id=p_f_id;
|
||||
if not FOUND then
|
||||
raise exception '% N''existe pas',p_f_id;
|
||||
end if;
|
||||
return ret;
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
update version set val=73;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue