Re: [PHP] PDOStatement::rowCount() bug?
[email protected] (Paul M Foster)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
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