sqldata/sqlapibase.cpp
// Get a list of columns for specified index
Get a list of columns for specified index
Get a list of columns for specified index
int SqlApiBase::GetIndexColumns(SqlIndexes &idx, std::string &idx_cols)
{
	std::list<std::string> columns;
	std::list<std::string> sorts;
	int rc = GetIndexColumns(idx, columns, sorts);
	int c = 0;
	for(std::list<std::string>::iterator i = columns.begin(); i != columns.end(); i++)
	{
		if(c > 0)
			idx_cols += ", ";
		idx_cols += (*i);
		c++;
	}
	return rc;
}
int SqlApiBase :: GetIndexColumns ( SqlIndexes & idx , std :: string & idx_cols ) { std :: list < std :: string > columns ; std :: list < std :: string > sorts ; int rc = GetIndexColumns ( idx , columns , sorts ) ; int c = 0 ; for ( std :: list < std :: string > :: iterator i = columns . begin ( ) ; i != columns . end ( ) ; i ++ ) { if ( c > 0 ) idx_cols += " " ; idx_cols += ( * i ) ; c ++ ; } return rc ; }
Get a list of columns for specified index
Get a list of columns for specified index
// Each driver redefines the way to get the list of columns