’ shows I’m not getting data back to the controller.
I’v added
SELECT ‘Called segments per area’ AS Output;
SELECT area_id AS Parameter;
to the stored procedure, I’m getting Output back in the controller, not the Parameter.
So, I think I’m not able to correctly pass the area_id to the stored procedure (tried 2 ways). Googling doesn’t give much info, and if, solutions are cakephp 2 and 3. Searching the cookbook with ‘call stored procedure’ gives no hits.
There’s something not ok with delimiters in stored procedure?
I only got Output in controller with this select sequence in stored procedure:
SELECT ‘Called segments per area’ AS Output;
SELECT area_id AS Parameter;
I only get Parameter in controller with this sequence:
SELECT area_id AS Parameter;
SELECT ‘Called segments per area’ AS Output;
Looks like only the first select in stored procedure is executed. The same effect when not setting the delimiters in sql. What I’m not getting is that all selects run when executing the stored procedure in phpmyadmin.