Re: DB_DataObject count() bug
| From: | Alan Knowles | Date: | Thu, 17 Apr 2003 04:31:43 +0000 |
| Subject: | Re: DB_DataObject count() bug | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-4899@lists.php.net to get a copy of this message | ||
Fixed in todays release
Regards
Alan
Richard Wallace wrote:
Hey all, Been using PEAR for the past 1-2 wks on a commercial application and things are going really well so far. Only qualm (as others have mentioned) is a lack of updated docs... but I have no problem browsing the source when the need arises. Anyways, the real reason for this email is two-fold. One to report a bug in the DB_DataObject count method. When doing the "select count({$keys[0]})" I think it probably should be "select count(".$this->__table.".{$keys[0]})". Trying to use it the way it is now, if you are also doing a joinAdd with a table that has a columns named the same (such as tables product and order both with id columns) you get a "ERROR DB Error: unknown error" which is really "Column: 'id' in field list is ambiguous" (in MySQL at least). Is there a bug tracking tool for this project? I looked and couldn't find it. I had to google to find the cvs, 'cause there is no dirrect link that I could find on the website, to see if it might have been fixed already or not.