doctrine/doctrine1 — pull request #51 by jaydiablo (2012-03-22 22:50:28+00:00)
Title: Changing Statement::setFetchMode to only pass 1 parameter to PDO conditionally

Changing Statement::setFetchMode to only pass 1 parameter to PDO when the mode isn't in a defined list. PDO throws an exception if it receives more than 1 parameter for most modes. See:

https://bugs.php.net/bug.php?id=54545

and:

http://gcov.php.net/PHP_5_3/lcov_html/pdo/pdo_stmt.c.gcov.php (line 1454 begins the switch statement, line 1525 is the conditional before the exception)