irm-1.6-b3/MDB/pgsql.php
/**
     * convert a value to a RDBMS indepdenant MDB type
     *
     * @param mixed $value value to be converted
     * @param int $type constant that specifies which type to convert to
     * @return mixed converted value or a MDB error on failure
     * @access public
     */
convert a value to a RDBMS indepdenant MDB type
@param mixed $value value to be converted
@param int $type constant that specifies which type to convert to
@return mixed converted value or a MDB error on failure
@access public
convert a value to a RDBMS indepdenant MDB type @param mixed $value value to be converted @param int $type constant that specifies which type to convert to @return mixed converted value or a MDB error on failure @access public
function convertResult($value, $type)
    {
        switch ($type) {
            case MDB_TYPE_DECIMAL:
                return(sprintf('%.'.$this->decimal_places.'f',doubleval($value)/$this->decimal_factor));
            case MDB_TYPE_TIMESTAMP:
                return substr($value, 0, strlen('YYYY-MM-DD HH:MM:SS'));
            default:
                return($this->_baseConvertResult($value, $type));
        }
    }
function convertResult ( $ value , $ type ) { switch ( $ type ) { case MDB_TYPE_DECIMAL : return ( sprintf ( '%.' . $ this -> decimal_places . 'f' , doubleval ( $ value ) / $ this -> decimal_factor ) ) ; case MDB_TYPE_TIMESTAMP : return substr ( $ value , 0 , strlen ( 'YYYY-MM-DD HH:MM:SS' ) ) ; default : return ( $ this -> _baseConvertResult ( $ value , $ type ) ) ; } }
convert a value to a RDBMS indepdenant MDB type
 @param mixed $value value to be converted
 @param int $type constant that specifies which type to convert to
 @return mixed converted value or a MDB error on failure
 @access public
convert a value to a RDBMS indepdenant MDB type @param mixed $value value to be converted @param int $type constant that specifies which type to convert to @return mixed converted value or a MDB error on failure @access public