wp-content/plugins/hyperdb/db.php
/**
	 * Generic function to determine if a database supports a particular feature
	 * The additional argument allows the caller to check a specific database.
	 * @param string $db_cap the feature
	 * @param false|string|resource $dbh_or_table the databaese (the current database, the database housing the specified table, or the database of the mysql resource)
	 * @return bool
	 */
Generic function to determine if a database supports a particular feature
The additional argument allows the caller to check a specific database.
@param string $db_cap the feature
@param false|string|resource $dbh_or_table the databaese (the current database, the database housing the specified table, or the database of the mysql resource)
@return bool
Generic function to determine if a database supports a particular feature The additional argument allows the caller to check a specific database . @param string $db_cap the feature @param false|string|resource $dbh_or_table the databaese ( the current database the database housing the specified table or the database of the mysql resource ) @return bool
function has_cap( $db_cap, $dbh_or_table = false ) {
		$version = $this->db_version( $dbh_or_table );
		switch ( strtolower( $db_cap ) ) :
		case 'collation' :
		case 'group_concat' :
		case 'subqueries' :
			return version_compare($version, '4.1', '>=');
		case 'set_charset' :
			return version_compare($version, '5.0.7', '>=');
		endswitch;
		return false;
	}
function has_cap ( $ db_cap , $ dbh_or_table = false ) { $ version = $ this -> db_version ( $ dbh_or_table ) ; switch ( strtolower ( $ db_cap ) ) : case 'collation' : case 'group_concat' : case 'subqueries' : return version_compare ( $ version , '4.1' , '>=' ) ; case 'set_charset' : return version_compare ( $ version , '5.0.7' , '>=' ) ; endswitch ; return false ; }
Generic function to determine if a database supports a particular feature
 The additional argument allows the caller to check a specific database.
Generic function to determine if a database supports a particular feature The additional argument allows the caller to check a specific database .