[dev] Re: DataTree get(First/Last/Random)ByAttributes()
Duck
duck at obala.net
Sun Mar 13 18:37:28 PST 2005
--Boundary-00=_ojPNC3HGi1z2qr2
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Saturday 12 of March 2005 17:17, Chuck Hagenbuch wrote:
> ORDER BY RAND() is not portable beyond MySQL. Also, any reason not to
> make $criteria just an optional parameter to getFirst() and getLast(),
> so as to avoid adding yet more methods?
>
> -chuck
just getFirst and getLast extended for the criteria options.
Thinking in this direction, even the two "count" methods are practicaly the
same.
duck
--Boundary-00=_ojPNC3HGi1z2qr2
Content-Disposition: attachment;
filename="sql.diff"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
A non-text attachment was scrubbed...
Name: sql.diff
Type: text/x-diff
Size: 6337 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20050314/2a5f9ad4/sql-0001.bin
--Boundary-00=_ojPNC3HGi1z2qr2--
More information about the dev
mailing list