Sequence of Fetching Result Sets and Out Parameters
For MySQL stored procedures that return result sets, the MySQL client returns the OUT parameters only after all result sets are returned. Hence, fetchReturnParams() should be called only after completely processing all the result sets, otherwise any other result sets will be lost.