Open dotmanila opened 7 years ago
https://dev.mysql.com/doc/refman/8.0/en/c-api-multiple-queries.html
To support multiple-result processing, the C API includes the mysql_more_results() and mysql_next_result() functions. These functions are used at the end of a loop that iterates as long as more results are available. Failure to process the result this way may result in a dropped connection to the server.
This is a bug also mentioned on following: https://github.com/sysown/proxysql/issues/1903#issuecomment-466584793
Stored procedures may send signals instead of actual resultsets. When this happens, it can break connection and affect others if multiplexing is used.