Issues

ZF-7225: mysql result handler doesn't return expected array of objects

Description

mysql result handler returns an arraycollection of arrays instead of arraycollection of objects because of which applications fail at runtime.

Comments

Could you please provide a code example of what you were doing, what you have received and what you expected to receive?

arrayOfArray.PNG, the result being received when mysql_result is returned from an amf operation.

arrayOfObjects.PNG, expected result when result is returned.

Please refer to the 104Kb arrayOfObjects.PNG instead of the 85Kb one.

The mysql result handler fetches result using mysql_fetch_assoc while iterating through the rows of the result. It would be great if it could use mysql_fetch_object and then set the types of each of the fields of the fetched object.

Switched to return objects.