Skip to content

Commit

Permalink
fixed oci_error resource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jfelder committed Mar 20, 2014
1 parent 6f0323b commit 119c88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jfelder/OracleDB/OCI_PDO/OCIStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ private function setErrorInfo($code=null, $error=null, $message = null)
$code = 'JF000';

if(is_null($error)){
$e = oci_error($this->conn);
$e = oci_error($this->stmt);
$error = $e['code'];
$message = $e['message'] . (empty($e['sqltext']) ? '' : ' - SQL: '.$e['sqltext']);
}
Expand Down

0 comments on commit 119c88c

Please sign in to comment.