Hydrahon icon indicating copy to clipboard operation
Hydrahon copied to clipboard

Run() method returns empty array

Open lucas-facchini opened this issue 8 years ago • 0 comments

Hi,

I belive there is a problem with the run() method implemented in Select.php. The function seems to be called from one-result helpers, and it should return the query result.

The method executes the query calling executeResultFetcher() which returns a mysqli object, then tests if it is an array, if not returns an empty array. Shoudn't it fetch the results first then test if it is an array, instead of testing the object?

lucas-facchini avatar Apr 29 '16 14:04 lucas-facchini