my store procedure code is below,
BEGIN
SELECT * FROM email_template_punit_master WHERE punit_id = p_punit_id;
SELECT 'SUITE' AS array_name
FROM dp__view_punit_master as a
WHERE a.punit_id = p_punit_id;
END
my code in lumen to call this store procedure is below,
$result = DB::select('call '.env('DB_PREFIX').'mystoreprocedure('.$parameter.')');
it gives me result of only first query from store procedure not for second query,
if I change the order of query as below,
BEGIN
SELECT 'SUITE' AS array_name
FROM dp__view_punit_master as a
WHERE a.punit_id = p_punit_id;
SELECT * FROM email_template_punit_master WHERE punit_id = p_punit_id;
END
again it gives me result of first query instead of both the query result,
if I execute in mysql database it give me required result but call from lumen it gives first query result,
how to get all query result with lumen store procedure