Hi everyone,
I want to call procedure at certain time, so I instatinate an event that will do it (call procedure) for me. Code looks like this:
Code:
CALL MainProcedure(@firstOutParam, @secondOutParam);
SELECT @moveId, @endTime; #select just for check if parameters are ok
CREATE EVENT myevent1 ON SCHEDULE AT @endTime DO CALL
`database`.`SupportingProcedure`(@firstOutParam);
CREATE EVENT myevent2 ON SCHEDULE AT @endTime DO CALL `database`.`OnlyForTestProcedure`();
Both `SupportingProcedure` and `OnlyForTestProcedure` when called not from event work properly, also, myevent2 calls .`OnlyForTestProcedure`.
The only thing that doesn't work is myevent1. It appears on `show events`, it then disappears but it doesn't work (`SupportingProcedure` either isn't called or doesn't work..).
Do you see anything I do wrong? What should I do to make it work?
Any help appreciated, I have no clue what else to check.