There are two stored procedures.
1 procedure
CREATE DEFINER=`******`@`******` PROCEDURE `add_row_into_number_docs`(IN `dealer` INT, IN `docTypeId` INT) LANGUAGE SQL DETERMINISTIC MODIFIES SQL DATA SQL SECURITY DEFINER COMMENT '' num_docs:BEGIN I will not give all the code, since it is big. I note only that it should result in the result variable, which takes the value 0 or 1
select result; END 2 procedure
CREATE DEFINER=`******`@`******` PROCEDURE `oparation`(IN `dealer` INT, IN `docTypeId` INT) LANGUAGE SQL DETERMINISTIC MODIFIES SQL DATA SQL SECURITY DEFINER COMMENT '' num_docs:BEGIN Also, I will not give all the code. This procedure calls 1 procedure.
call add_row_into_number_docs(userDealerId,docTypeId); And then there are again some manipulations. This procedure should return the result:
select resultCode, resultComment, idKOOperation; END But for some reason, when calling the second procedure, I get a result that returns 1 procedure
result Instead of the expected
resultCode, resultComment, idKOOperation With what it can be connected?
oparationprocedure (INdealerINT, INdocTypeIdOUT resultCode INT) needed to be called a calloperation(1.1, @ a) and I initially called by specifying just the input parameters of the calloperation(1.1,) - Ibragimhalil Nasrutdinov