From 06440ab6dca216379a8c0a24e9561d9a1989828c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20H=C5=AFla?= Date: Fri, 17 Apr 2015 15:17:14 +0200 Subject: [PATCH] OracleDriver: shut-up oci_execute() The oci_execute() emits warnings e.g. on denied permissions when EXPLAIN. --- dibi/drivers/DibiOracleDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/drivers/DibiOracleDriver.php b/dibi/drivers/DibiOracleDriver.php index 145074a2f..f4d17ae06 100644 --- a/dibi/drivers/DibiOracleDriver.php +++ b/dibi/drivers/DibiOracleDriver.php @@ -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);