Merged revisions 3261-3263 via svnmerge from
file:///home/developper/svn/phpcompta/branches/rel510 ........ r3262 | danydb | 2010-05-31 16:35:34 +0200 (Mon, 31 May 2010) | 1 line Problem in ACTION_GESTION We dont get the complete tree, the function was missing a recursive call, it is needed to test it ........ r3263 | danydb | 2010-06-01 11:59:49 +0200 (Tue, 01 Jun 2010) | 1 line typo in function name ........
This commit is contained in:
parent
048f8e1f34
commit
1ea0d225b9
2 changed files with 32 additions and 1 deletions
31
html/admin/sql/patch/upgrade78.sql
Normal file
31
html/admin/sql/patch/upgrade78.sql
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
begin;
|
||||
|
||||
DROP FUNCTION if exists comptaproc.action_get_tree(bigint);
|
||||
|
||||
CREATE OR REPLACE FUNCTION comptaproc.action_get_tree(p_id bigint)
|
||||
RETURNS setof bigint AS
|
||||
$BODY$
|
||||
|
||||
declare
|
||||
e bigint;
|
||||
i bigint;
|
||||
begin
|
||||
for e in select ag_id from action_gestion where ag_ref_ag_id=p_id
|
||||
loop
|
||||
for i in select action_get_tree from comptaproc.action_get_tree(e)
|
||||
loop
|
||||
raise notice ' == i %', i;
|
||||
return next i;
|
||||
end loop;
|
||||
raise notice ' = e %', e;
|
||||
return next e;
|
||||
end loop;
|
||||
return;
|
||||
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
|
||||
update version set val=79;
|
||||
|
||||
commit;
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
require_once ('config.inc.php');
|
||||
require_once('constant.security.php');
|
||||
|
||||
define ("DBVERSION",78);
|
||||
define ("DBVERSION",79);
|
||||
|
||||
define ("MAX_COMPTE",4);
|
||||
define ('MAX_ARTICLE',9);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue