[dev] [commits] Horde branch master updated. d0396d8d495ed66fa088ae490a1d0ff3dbe16de9

Chuck Hagenbuch chuck at horde.org
Sat Aug 29 02:47:06 UTC 2009


Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> The branch "master" has been updated.
>> The following is a summary of the commits.
>>
>> from: 838f1035739dc2440aba541bb452f02184d7f76c
>>
>> d0396d8... Implement Countable.
>>
>> -----------------------------------------------------------------------
>>
>> commit d0396d8d495ed66fa088ae490a1d0ff3dbe16de9
>> Author: Jan Schneider <jan at horde.org>
>> Date:   Fri Aug 28 23:08:31 2009 +0200
>>
>>    Implement Countable.
>>
>> framework/Db/lib/Horde/Db/Adapter/Abstract.php |   12 +++++++++++-
>> 1 files changed, 11 insertions(+), 1 deletions(-)
>>
>> http://git.horde.org/patchsets.php/?rt=horde-git&ps=d0396d8d495ed66fa088ae490a1d0ff3dbe16de9
>
> This doesn't make sense to me - what does it mean for a database  
> adapter to have a count?

Also, from the PDO docs:

If the last SQL statement executed by the associated PDOStatement was  
a SELECT statement, some databases may return the number of rows  
returned by that statement. However, this behaviour is not guaranteed  
for all databases and should not be relied on for portable applications.

I'm going to revert this. We should be getting the info a different  
way for SELECTs, and it's already available for update and delete  
statements.

-chuck


More information about the dev mailing list