title: ROW_COUNT returns 0 after INSERT or UPDATE
body: <p>I have a PHP project that uses Pear DB to deal with MySQL database. One of the functions inside of that project relies on a result of <code>SELECT ROW_COUNT()</code> to find out number of rows affected by certain SQL statement. On MySQL 5.1 <code>ROW_COUNT()</code> behaves as expected, whilst on 5.5 it always returns <strong>0</strong>. </p>
  
  <p>I have also tried performing an insert through MySQL Workbench and executing <code>SELECT ROW_COUNT()</code> and it also returns 0. Although, doing same thing through MySQL cli, works fine!</p>
  
  <p>Anybody stumbled upon this?</p>
  
  <p>Thanks!</p>