baser/models/datasources/dbo/dbo_postgres_ex.php
/**
 * Gets the length of a database-native column description, or null if no length
 *
 * @param string $real Real database-layer column type (i.e. "varchar(255)")
 * @return int An integer representing the length of the column
 */
Gets the length of a database-native column description, or null if no length
@param string $real Real database-layer column type ")
@return int An integer representing the length of the column
Gets the length of a database - native column description or null if no length @param string $real Real database - layer column type " ) @return int An integer representing the length of the column
function length($real) {
		if(preg_match('/^int([0-9]+)$/', $real, $maches)) {
			return intval($maches[1]);
		}
		$col = str_replace(array(')', 'unsigned'), '', $real);
		$limit = null;
		if (strpos($col, '(') !== false) {
			list($col, $limit) = explode('(', $col);
		}
		if ($col == 'uuid') {
			return 36;
		}
		if ($limit != null) {
			return intval($limit);
		}
		return null;
	}
function length ( $ real ) { if ( preg_match ( '/^int([0-9]+)$/' , $ real , $ maches ) ) { return intval ( $ maches [ 1 ] ) ; } $ col = str_replace ( array ( ')' , 'unsigned' ) , '' , $ real ) ; $ limit = null ; if ( strpos ( $ col , '(' ) !== false ) { list ( $ col , $ limit ) = explode ( '(' , $ col ) ; } if ( $ col == 'uuid' ) { return 36 ; } if ( $ limit != null ) { return intval ( $ limit ) ; } return null ; }
Gets the length of a database-native column description, or null if no length
 @param string $real Real database-layer column type (i.e.
Gets the length of a database - native column description or null if no length @param string $real Real database - layer column type ( i . e .
// >>> CUSTOMIZE ADD 2012/04/23 ryuring // <<<