The result collection now covers more cases, including the use of COM_CHANGE_USER. The addition of COM_STMT_EXECUTE to the list of commands that generate result set responses is needed in order for the code to take the correct branch.