From 9c47e3f15eea6f2f3fc06f8f840c0cf0452ab198 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Wed, 15 Mar 2017 15:03:02 -0400 Subject: [PATCH] HOR-2703 --- .../creole/drivers/oracle/OCI8Connection.php | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php index 5a6a34ef9..32e49a45d 100644 --- a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php +++ b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php @@ -140,30 +140,27 @@ class OCI8Connection extends ConnectionCommon implements Connection */ function executeQuery( $sql, $fetchmode = null ) { - $this->lastQuery = $sql; + $this->lastQuery = $sql; - // $result = @oci_parse( $this->dblink, $sql ); - $result = oci_parse( $this->dblink, $sql ); + $result = @oci_parse($this->dblink, $sql); - if ( ! $result ) - { - throw new SQLException( 'Unable to prepare query' - , $this->nativeError() - , $sql - ); + if (!$result) { + throw new SQLException('Unable to prepare query' + , $this->nativeError() + , $sql + ); } $success = @oci_execute($result, $this->execMode); - if ( ! $success ) - { - throw new SQLException( 'Unable to execute query' - , $this->nativeError( $result ) - , $sql - ); + if (!$success) { + throw new SQLException('Unable to execute query' + , $this->nativeError($result) + , $sql + ); } - - return new OCI8ResultSet( $this, $result, $fetchmode ); + + return new OCI8ResultSet($this, $result, $fetchmode); }