Re: numRows()
| From: | Sterling Hughes | Date: | Fri, 08 Dec 2000 14:40:54 +0000 |
| Subject: | Re: numRows() | ||
| References: | 1 2 3 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-613@lists.php.net to get a copy of this message | ||
> On Fri, 08 Dec 2000, Stig Bakken wrote:
> > I have never really had the need for numRows myself (usually you can get
> > around somehow anyway), and I would not mind not supporting it, exactly
> > because it is hard to emulate.
>
> Funny, I rely on numrows functionality pretty frequently in my
> programming. I'd hate not to see some support for it in DB layer. I'd
> rather have certain DB modules return return not-implemented code rather
> than having to rely on 'select count(*)' tricks and stuff like that.
>
I use it quite it alot to..
I think Stig has the right idea with an optimized option where db's that support
it will use it if supported and the ones that don't will return an error if the
optimized option is on, otherwise they will return an error that it is not
supported. The optimized option would be on by default...
-Sterling