Пример #1
0
 protected function LastError()
 {
     if (isset($this->lastException)) {
         return $this->lastException->getMessage();
     } else {
         return parent::LastError();
     }
 }
Пример #2
0
 protected function LastError()
 {
     if ($this->queryResult) {
         $errorArray = oci_error($this->queryResult);
     } else {
         $errorArray = parent::LastError();
     }
     return $errorArray['message'];
 }