I have a stored procedure SP1 that calls another stored procedure SP2 like so:
CREATE PROCEDURE SP1()
BEGIN
CALL SP2();
END
The SP2 stored proc returns a row from a table, but I don’t want SP1 to return anything. I tried declaring a dummy variable and ending SP1() with something like “SELECT 0 INTO dummy”, but nothing seems to work…
Is there simple way to make SP1 not return the row from SP2?
The return type of a stored procedure is
Intand cannot be changed to returnNULL.This looks like The X Y Problem.
Why are you calling
SP2fromSP1? Maybe you could change your design if the return value is causing trouble.