Welcome Guest, Not a member yet? Register   Sign In
DB doesn't have num_rows/numRows ??
#7

(09-15-2018, 10:11 PM)Paradinight Wrote: See https://github.com/bcit-ci/CodeIgniter4/pull/109

Quote:I had left the numRows out on purpose. We can always discuss whether to provide it or not but we had been discouraging its use for the last couple of years and writing it out of the user guide examples due to performance and memory issues on several platforms.

Performance and memory issues? I will refrain from issuing a harsh rebuke, but I willl say that it sounds like CI4 must have some kind of problem that CI3 didn't have. Either that or these "performance and memory issues" are insignificant and being blown out of proportion.

Quote:All getResult methods will return an empty array and all getRow methods return null if the record doesn't exist.

I can live with that, but still believe that there should be a getNumRows() method.
Reply


Messages In This Thread
DB doesn't have num_rows/numRows ?? - by skunkbad - 09-15-2018, 10:51 AM
RE: DB doesn't have num_rows/numRows ?? - by skunkbad - 09-16-2018, 08:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB