Quote:
Originally posted by Roelwe
I Think we need more input here:
Can you post the two procedures?
When do you get the error? On the execute procedure statement?
|
CREATE PROCEDURE ONE ( id int)
RETURNING VARCHAR(10),VARCHAR(10);
DEFINE v_name;
DEFINE v_add;
If (id =2 )
FOREACH Outputcur FOR
SELECT Ename, Address INTO v_name, v_add FROM Employee
RETURN v_name, v_add WITH RESUME;
END FOREACH
ELSE
CALL PROCEDURE TWO(id int);
END PROCEDURE;
Now if the condition does not match and goes to the else part ..then what about the return value of the ONE procedure. How this takes place How should i proceed..
For 2nd question.
There was a mistake it was not happening while executing the procedure it was happening while CREATING the procedure.
Thanks for the immediate reply