working w/stored proc that return multiple result sets |
![]() the dot net application is using mysql with a number of stored procedures that for the most part work just fine when called using $this->db->query("call xxxx()"); However, a number of those stored procs return multiple result sets that are relatively simple to use in the dot net/c# environment. not so much using this particular db interface. or at least, that I've discovered. Any ideas or suggestions as to how to accomplish this? I do know that I can do this within a loop using the mysql pdo interface. is this something I should use just for this particular situation? please be kind, as I'm new to 3.x and never really encountered this when learning 2.x.. regards, OM.
OM...
------------------------- And on the pedestal these words appear: 'My name is Ozymandias, king of kings: Look on my works, ye Mighty, and despair!' Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and level sands stretch far away.
You should be able to call more than one stored procedure, just by calling ->next_result(). I'm not sure if CI3 has ->next_result(), but if it doesn't you will need a hack:
PHP Code: /*/system/database/drivers/mysqli/mysqli_result.php
(12-07-2015, 03:43 PM)skunkbad Wrote: You should be able to call more than one stored procedure, just by calling ->next_result(). I'm not sure if CI3 has ->next_result(), but if it doesn't you will need a hack: thanks! I'll give it a go and see what happens tonight...
OM...
------------------------- And on the pedestal these words appear: 'My name is Ozymandias, king of kings: Look on my works, ye Mighty, and despair!' Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and level sands stretch far away. |
Welcome Guest, Not a member yet? Register Sign In |