Re: cvs: pear /DB package.xml /DB/DB common.php

From: Date: Thu, 03 Mar 2005 18:26:40 +0000
Subject: Re: cvs: pear /DB package.xml /DB/DB common.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30028@lists.php.net to get a copy of this message
Adam Maccabee Trachtenberg wrote:
Don't know much about this, but why are these 5 functions special? I know in SQLite, I can define my own aggregate functions with any old name I choose. What will happen if I mix those with getOne()?
I am also beginnig to wonder if this kind of optimization is really not worth it. Users should write proper queries if they want to fetch only one row. Note I have similar optimizations in MDB2 and I am now thinking about removing them. However in MDB2 there is the setLimit() method which can be combined with any method call that can run a query so that users can make this optimization themselves if for some reason they cant force the query to return only a single row using the necessary where constraints. regards, Lukas

« previous php.pear.cvs (#30028) next »