Skip to content

Commit

Permalink
OracleDriver: shut-up oci_execute()
Browse files Browse the repository at this point in the history
The oci_execute() emits warnings e.g. on denied permissions when EXPLAIN.
  • Loading branch information
milo committed Apr 17, 2015
1 parent b341b66 commit 06440ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dibi/drivers/DibiOracleDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function query($sql)
{
$res = oci_parse($this->connection, $sql);
if ($res) {
oci_execute($res, $this->autocommit ? OCI_COMMIT_ON_SUCCESS : OCI_DEFAULT);
@oci_execute($res, $this->autocommit ? OCI_COMMIT_ON_SUCCESS : OCI_DEFAULT);
$err = oci_error($res);
if ($err) {
throw new DibiDriverException($err['message'], $err['code'], $sql);
Expand Down

0 comments on commit 06440ab

Please sign in to comment.