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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -