irm-1.6-b3/MDB/Common.php
/**
     * Map native error codes to MDB's portable ones.  Requires that
     * the DB implementation's constructor fills in the $errorcode_map
     * property.
     *
     * @param mixed $nativecode the native error code, as returned by the
     *      backend database extension (string or integer)
     * @return int a portable MDB error code, or FALSE if this MDB
     *      implementation has no mapping for the given error code.
     * @access public
     */
Map native error codes to MDB's portable ones.  Requires that
the DB implementation's constructor fills in the $errorcode_map
property.

@param mixed $nativecode the native error code, as returned by the
backend database extension (string or integer)
@return int a portable MDB error code, or FALSE if this MDB
implementation has no mapping for the given error code.
@access public
Map native error codes to MDB ' s portable ones . Requires that the DB implementation ' s constructor fills in the $errorcode_map property . @param mixed $nativecode the native error code as returned by the backend database extension ( string or integer ) @return int a portable MDB error code or FALSE if this MDB implementation has no mapping for the given error code . @access public
function errorCode($nativecode)
    {
        if (isset($this->errorcode_map[$nativecode])) {
            return($this->errorcode_map[$nativecode]);
        }
        return(MDB_ERROR);
    }
function errorCode ( $ nativecode ) { if ( isset ( $ this -> errorcode_map [ $ nativecode ] ) ) { return ( $ this -> errorcode_map [ $ nativecode ] ) ; } return ( MDB_ERROR ) ; }
Map native error codes to MDB's portable ones.
Map native error codes to MDB ' s portable ones .
// Fall back to MDB_ERROR if there was no mapping.