DB_DataObject count() bug

From: Date: Wed, 16 Apr 2003 18:03:50 +0000
Subject: DB_DataObject count() bug
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4888@lists.php.net to get a copy of this message
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. -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants "Providing New Technology, the Old-Fashioned Way"

« previous php.pear.general (#4888) next »