Closed videni closed 1 year ago
Are you using the same PDO client in different coroutines at the same time?
This error means that calls the query method, but before the query returns a complete data set, a new query is initiated using the database connection. MySQL does not allow a new query to be issued without obtaining the full result set.
You should check your code, if there is a new query using this connection every time fetch is called?
Error stack
What I tried
change to FetchAll , not working
Set atrribute MYSQL_ATTR_USE_BUFFERED_QUERY to true for statement, not working
Close cursor as this cannot-execute-queries-while-other-unbuffered-queries suggests. not working