yajra / pdo-via-oci8

PHP PDO_OCI functions via OCI8 extension
Other
88 stars 61 forks source link

Add support for more fetch modes. #12

Closed alfmel closed 10 years ago

alfmel commented 10 years ago

This patch adds support for the following fetch modes:

PDO::FETCH_COLUMN PDO::FETCH_OBJ PDO::FETCH_INTO PDO::FETCH_CLASS PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE

In order to add these new fetch modes, Statement::setFetchMode() was implemented, and all other functions that had arguments for fetch mode have now been implemented.

This patch also fixes a bug in Statement::fetchColumn where it would only return the first column, even if colNumber was set.

yajra commented 10 years ago

:100: thanks for another great PR!