irm-1.6-b3/MDB/mssql.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
    * @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
@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 @access public
function convertResult($value, $type)
    {
        switch($type) {
            case MDB_TYPE_BOOLEAN:
                return ($value == '1') ? TRUE : FALSE;
            case MDB_TYPE_DATE:
                if(strlen($value) > 10) {
                    $value=substr($value,0,10);
                }
                return($value);
            case MDB_TYPE_TIME:
                if(strlen($value) > 8) {
                    $value=substr($value,11,8);
                }
                return($value);
            case MDB_TYPE_TIMESTAMP:
                return($value);
            default:
                return($this->_baseConvertResult($value,$type));
        }
    }
function convertResult ( $ value , $ type ) { switch ( $ type ) { case MDB_TYPE_BOOLEAN : return ( $ value == '1' ) ? TRUE : FALSE ; case MDB_TYPE_DATE : if ( strlen ( $ value ) > 10 ) { $ value = substr ( $ value , 0 , 10 ) ; } return ( $ value ) ; case MDB_TYPE_TIME : if ( strlen ( $ value ) > 8 ) { $ value = substr ( $ value , 11 , 8 ) ; } return ( $ value ) ; case MDB_TYPE_TIMESTAMP : return ( $ value ) ; 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
 @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 @access public