DataObject->count() always DISCTINCT ?
| From: | Jacques Nunes | Date: | Mon, 21 Mar 2005 20:54:01 +0000 |
| Subject: | DataObject->count() always DISCTINCT ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18209@lists.php.net to get a copy of this message | ||
Why DataObject->count() always results in a DISCTINCT
clause?
DataObject.php,v 1.339 2005/03/16
$object->count();
SELECT count(frm_tarefa.modulo_id)...
DataObject.php,v 1.294 2004/08/28
$object->count();
SELECT count(DISTINCT frm_tarefa.modulo_id)...
I think that is error on:
-----
// support distinct on default keys.
$countWhat = (false !== strcmp($countWhat,'DISTINCT'))
? "DISTINCT {$table}.{$key_col}" : $countWhat;
$countWhat = is_string($countWhat) ? $countWhat :
"{$table}.{$key_col}";
------
Jacques, from Brazil.
Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/