HOR-360 "CONSULTAS CON CONEXION POR TNS GENERAN WARNINGS" SOLVED
HOR-360
This commit is contained in:
@@ -280,6 +280,9 @@ class XmlForm_Field
|
|||||||
$rs = $con->executeQuery( $query, ResultSet::FETCHMODE_NUM );
|
$rs = $con->executeQuery( $query, ResultSet::FETCHMODE_NUM );
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//dismiss error because dbarray shouldnt be defined in some contexts.
|
//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;
|
return $result;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -289,6 +292,9 @@ class XmlForm_Field
|
|||||||
$rs = $stmt->executeQuery( $query, ResultSet::FETCHMODE_NUM );
|
$rs = $stmt->executeQuery( $query, ResultSet::FETCHMODE_NUM );
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//dismiss error because dbarray shouldnt be defined in some contexts.
|
//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;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class OCI8Connection extends ConnectionCommon implements Connection
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$success = oci_execute( $result, $this->execMode );
|
$success = @oci_execute($result, $this->execMode);
|
||||||
|
|
||||||
if ( ! $success )
|
if ( ! $success )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user