MySQL Forums
Forum List  »  Stored Procedures

Re: Stored procedure runs indefinitely, but the steps within can be run individually with no issue (5.7)
Posted by: Peter Brawley
Date: February 18, 2019 01:11PM

Is max_execution_time set to 300?

Execute show variables like '%timeout%';

Re stubs, it's standard debugging method in all languages, in mysql eg ...

create procedure xxx (...)
begin
  set @t=now(6);
  ...
  select timediff(now(6),@t) as t, var1, var2, ...
  ...
  select timediff(now(6),@t) as t, var1, var2, ...
end;

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.