Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5388 | minor | always | 03-06-13 05:00 | 03-06-13 05:36 | |
|
|||||
Reporter: | konst | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.36 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0005388: PDOStatement.rowCount() doesn't meet DELETE, INSERT, or UPDATE statements specification | ||||
Description: |
According to the specification of PDOStatement.rowCount() from http://php.net/manual/en/pdostatement.rowcount.php, [^] it must return "the number of rows affected by the last DELETE, INSERT, or UPDATE statement". "... SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed" However the current implementation of rowCount() was only returning the number of rows returned by SELECT statement. By this commit the implementation has changed to return the number of rows affected by DELETE, INSERT, or UPDATE statements and also the number of rows returned by the SELECT statement File: modules\quercus\src\com\caucho\quercus\lib\db\PDOStatement.java |
||||
Steps To Reproduce: | |||||
Additional Information: |
Going to commit the fix to the following repository: https://github.com/mdaniel/svn-caucho-com-resin [^] or https://github.com/konst-git/svn-caucho-com-resin [^] |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|