Exemplo n.º 1
0
 function ErrorNo()
 {
     if ($this->haserrorfunctions) {
         $e = odbc_error($this->_connectionID);
         // bug in 4.0.6, error number can be corrupted string (should be 6 digits)
         // so we check and patch
         if (strlen($e) <= 2) {
             return 0;
         }
         return $e;
     } else {
         return ADODBConnection::ErrorNo();
     }
 }