Welcome Guest, Not a member yet? Register   Sign In
Migrating CI3 to CI4, need query->numRows function
#6

(12-30-2020, 05:38 PM)kenjis Wrote: It seems there is no way to extend the database result class.
This is very disappointing.

(12-30-2020, 10:51 PM)seunex Wrote: It is known as $query->countAllResults()
(12-31-2020, 03:58 AM)InsiteFX Wrote:
PHP Code:
$query->countAllResults(); 
You guys clearly did not read my post. I specifically referred to the differences between countAllResults and numRows.
seunex: countAllResults is a method of the BaseBuilder class, not the BaseResult class.

A new development. It looks like Lonnie (is this kilishan?) has said they would accept a pull request. It should be pretty easy to add the method for the DBMSes that support it.
Reply


Messages In This Thread
RE: Migrating CI3 to CI4, need query->numRows function - by sneakyimp - 12-31-2020, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB