The number of values that a procedure was declared to return in the RETURNING clause does not match the number of values in a RETURN clause.
An example of the error follows:
CREATE PROCEDURE testproc () RETURNING INT, INT; ... RETURN 1,2,3; -- error ... RETURN 1; -- error END PROCEDURE
Correction: In this example, return exactly two arguments.