yajra / pdo-via-oci8

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

Fix non-FETCH_COLUMN queries #29

Closed snelg closed 8 years ago

snelg commented 8 years ago

The pull request for v1.0.3 fixed FETCH_COLUMN queries, but broke every other query type.

$row = reset($row);

replaces the whole "$row" array with its first element, throwing away the rest of the original $row data. This patch replaces that original fix with a simpler one. Now FETCH_COLUMN and other FETCH_ modes all work.

yajra commented 8 years ago

@snelg thanks for the fix. Released on v1.0.4