MySQL stored procedure OUT param returned as null (NO LOCAL VARIABLE DECLARED) -
i trying debug problem. i've gone great extremes , trying figure out why mysql return null when return var explicitly set value.
delimiter $$ create definer=`root`@`localhost` procedure `foo`( out numberexpectedtofill int(11)) deterministic begin set numberexpectedtofill := 23; commit; end
so, scripted little script call it, , return value null. why?
prepare s 'call `test_schema`.`foo`(@output)'; execute s; select @output
this unexpected ... works in sqlfiddle both , without using prepared statement: http://sqlfiddle.com/#!2/d4ddf/1, http://sqlfiddle.com/#!2/d4ddf/2
maybe there problem permissions (would signal error, thought) ?!?
edit: still guessing -- sure call foo
right schema? o_o
Comments
Post a Comment