On Mon, Feb 22, 2010 at 09:50:30PM -0500, Paul M Foster wrote:

> Using MySQL 5.075, PHP 5.25 on Debian unstable.
> 
> Has anyone noticed, when issuing a PDOStatement::rowCount() call after a
> DELETE, UPDATE or INSERT, the return is uniformly zero, rather than the
> actual number of rows affected?
> 
> If so, is there a simple workaround?

Update: MySQL 5.1.44.

rowCount() appears to return 0 only on deletes, not updates or inserts.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to