コード例 #1
0
ファイル: pdo_engine.php プロジェクト: blakeHelm/BallotPath
 protected function LastError()
 {
     if (isset($this->lastException)) {
         return $this->lastException->getMessage();
     } else {
         return parent::LastError();
     }
 }
コード例 #2
0
ファイル: oracle_engine.php プロジェクト: kcallow/MatchMe
 protected function LastError()
 {
     if ($this->queryResult) {
         $errorArray = oci_error($this->queryResult);
     } else {
         $errorArray = parent::LastError();
     }
     return $errorArray['message'];
 }