From 7e82a9e58537f3c335cfaab0c032ed30e85a2ff5 Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Mon, 29 Feb 2016 15:52:30 -0400 Subject: [PATCH] HOR-360 "CONSULTAS CON CONEXION POR TNS GENERAN WARNINGS" SOLVED HOR-360 --- gulliver/system/class.xmlform.php | 6 ++++++ .../thirdparty/creole/drivers/oracle/OCI8Connection.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 018d41a79..4d7cc0805 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -280,6 +280,9 @@ class XmlForm_Field $rs = $con->executeQuery( $query, ResultSet::FETCHMODE_NUM ); } catch (Exception $e) { //dismiss error because dbarray shouldnt be defined in some contexts. + $workspace = defined("SYS_SYS")? SYS_SYS : "Wokspace Undefined"; + G::log($workspace . " | ip: | " . G::getIpAddress() . " | type error: | " . $e->getMessage() . " | query: " . $query, PATH_DATA, "queriesWithErrors.log"); + return $result; } } else { @@ -289,6 +292,9 @@ class XmlForm_Field $rs = $stmt->executeQuery( $query, ResultSet::FETCHMODE_NUM ); } catch (Exception $e) { //dismiss error because dbarray shouldnt be defined in some contexts. + $workspace = defined("SYS_SYS")? SYS_SYS : "Wokspace Undefined"; + G::log($workspace . " | ip: | " . G::getIpAddress() . " | type error: | " . $e->getMessage() . " | query: " . $query, PATH_DATA, "queriesWithErrors.log"); + return $result; } } diff --git a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php index f728e74f6..5a6a34ef9 100755 --- a/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php +++ b/gulliver/thirdparty/creole/drivers/oracle/OCI8Connection.php @@ -153,7 +153,7 @@ class OCI8Connection extends ConnectionCommon implements Connection ); } - $success = oci_execute( $result, $this->execMode ); + $success = @oci_execute($result, $this->execMode); if ( ! $success ) {