|
|||||||||||
|
How to call a stored procedure from a stored function with parameter?
From: Zsolt Csillag <starhu(at)gmail.com>
Date: Sat Sep 29 2007 - 16:32:49 EDT
I have the following stored procedure PROCEDURE `IsProductInForeignDatabase`(IN stock INTEGER(11), OUT MyResult VARCHAR(1000), IN Behaviour VARCHAR(20)) The procedure above returns the "MyResult" out parameter. I have a stored function as well thas has the body:
Begin
set MyResult = ''; call `IsProductInForeignDatabase`(1, MyResult,'question'); RETURN 50;
The problem should be with the "MyResult" variable, but I don't know what to
do.
It is interesting that if I call the procedure within an Sql window it works perfectly like this: CALL `IsProductInForeignDatabase`(1, @w,'question'); SELECT @w; If it worked the end of the function would be "return MyResult". Thank you in advance Zsolt Csillag
www.egyediszoftverek.hu
This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:12:51 EDT |
||||||||||
|
|||||||||||