yajra / pdo-via-oci8

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

Get the resource of oci8 connection #96

Closed bugs-forever closed 2 years ago

bugs-forever commented 2 years ago

Summary of problem or feature request

I want to use ref cursor as an output. pdo does not supports ref cursors, so i need to bind it by oci_bind_by_name. For that I need private resource property of Oci8 class called dbh. Maybe add getter for it like GetResource() ?

Code snippet of problem

$pdo = DB::getPdo();
$resource = $pdo->getResource();

System details

yajra commented 2 years ago

Fixed via #97