You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into "Commands out of sync; you can't run this command now" when calling multiple stored procedures subsequently using the mysqli driver.
The exactly same issue is mentioned e.g. here #64
Not very well tested, but this solves at least my issues for now.
All you have to do is make a few changes to dibi/dibi/src/Dibi/Drivers/MySqliDriver.php
Version: ^4.2
Bug Description
I ran into "Commands out of sync; you can't run this command now" when calling multiple stored procedures subsequently using the mysqli driver.
The exactly same issue is mentioned e.g. here #64
Steps To Reproduce
Expected Behavior
No matter whether it's a stored procedure call or just a regular query, there shouldn't be any issues.
Possible Solution
I haven't spent too much time on this issue as I'm quite busy, but this seems to be an issue that people run into a lot.
PHP Commands Out of Sync error - https://stackoverflow.com/questions/14554517/php-commands-out-of-sync-error
Another thread - https://www.php.net/manual/en/mysqli.query.php#102904
Not very well tested, but this solves at least my issues for now.
All you have to do is make a few changes to dibi/dibi/src/Dibi/Drivers/MySqliDriver.php
(original)
(improved)
The text was updated successfully, but these errors were encountered: