-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
When calling multiple stored procedures, you can run into the following error: "Commands out of sync; you can't run this command now". I added the following to my class.db.php and then call it after calling the procedure query.
public function next_result()
{
$this->link->next_result();
}
So now I run this without the error.
$db->get_row( "CALL calcMedian('table_name','col_name')" );
$db->next_result();
$db->get_row( "CALL calcMedian('table_name','col_name')" );
$db->next_result();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels