Skip to content
Snippets Groups Projects
Commit 14742382 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 795

Removed duplicate function.
parent 864059b3
No related branches found
No related tags found
No related merge requests found
......@@ -23,41 +23,6 @@
--
--
-- helper function
-- instanciateVTparams(orgNodeID, newTreeID, newNodeID)
--
-- Gives the newNodeID in the newTreeID the same parameters as the orgNode.
-- Note: new node must already exist.
--
-- Authorisation: none
--
-- Tables: VICparamdef read
-- VICtemplate insert
--
-- Types: none
--
CREATE OR REPLACE FUNCTION instanciateVTparams(INT4, INT4, INT4)
RETURNS VOID AS '
DECLARE
vParam RECORD;
BEGIN
FOR vParam IN
SELECT paramID, name, limits
FROM VICparamDef
WHERE nodeID = $1
AND name NOT like \'#%\'
LOOP
INSERT
INTO VICtemplate(treeID, parentID, originID, name, instances, limits)
VALUES ($2, $3, vParam.paramID, vParam.name, 1, vParam.limits);
-- note: nodeId, index and leaf are defaulted.
END LOOP;
RETURN;
END;
' LANGUAGE plpgsql;
--
-- helper function
-- instanciateVTleafNode(orgNodeID, newTreeID, newParentID, newName):newNodeID
......
......@@ -141,7 +141,7 @@ CREATE OR REPLACE FUNCTION instanciateVTsubTree(INT4, INT4, INT4)
--RAISE WARNING \'subTree:%,%,%\', $1, $2, $3;
-- copy node itself
vNewNodeID := instanciateVTleafnode($1, $2, $3);
vNewNodeID := instanciateVTleafNode($1, $2, $3);
-- loop through children
FOR vNode IN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment