DataObject bug?
| From: | Mike Carter | Date: | Wed, 28 May 2003 17:10:30 +0000 |
| Subject: | DataObject bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5667@lists.php.net to get a copy of this message | ||
Hi,
I think I found a potential little SQL building slip up. Although it can be
thought of as the programmers fault I found the following.
If I try to do a $dobj->whereAdd($keywords); and $keywords is empty/null
then surely DataObjects would be best off just ignoring the request and
disgarding it? Instead it adds an additional AND into the query string
anyway.
Not a critical bug :)
Regards,
--
Mike Carter [web developer]
tel: 01925 758229 // fax: 01925 758023 // web: www.koa.uk.com
This message is confidential.
Unless you are the named addressee or their delegated representative you may
not use, disclose, or copy the contents of the e-mail. If you are not the
named addressee please notify the sender immediately and delete the material
from your computer. Any views or opinions contained in this e-mail are
solely those of the author unless expressly stated otherwise
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 5/27/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________