MySQL error detection in mysql_info extension