sqldata/sqlifmxapi.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 SqlIfmxApi::GetIndexColumns(SqlIndexes &idx, std::list<std::string> &idx_cols, std::list<std::string> &idx_sorts)
{
    int c = 0;
	for(std::list<SqlIndColumns>::iterator i = _table_ind_columns.begin(); i != _table_ind_columns.end(); i++)
	{
		if((*i).tabid != idx.tabid)
		{
			if(c == 0)
				continue;
			else
				break;
		}
		if((*i).index != NULL && idx.index != NULL && strcmp((*i).index, idx.index) == 0)
		{
			idx_cols.push_back((*i).column);
			idx_sorts.push_back("");
			c++;
		}
	}
	return 0;
}
int SqlIfmxApi :: GetIndexColumns ( SqlIndexes & idx , std :: list < std :: string > & idx_cols , std :: list < std :: string > & idx_sorts ) { int c = 0 ; for ( std :: list < SqlIndColumns > :: iterator i = _table_ind_columns . begin ( ) ; i != _table_ind_columns . end ( ) ; i ++ ) { if ( ( * i ) . tabid != idx . tabid ) { if ( c == 0 ) continue ; else break ; } if ( ( * i ) . index != NULL && idx . index != NULL && strcmp ( ( * i ) . index , idx . index ) == 0 ) { idx_cols . push_back ( ( * i ) . column ) ; idx_sorts . push_back ( " " ) ; c ++ ; } } return 0 ; }
Get a list of columns for specified index
Get a list of columns for specified index
// Find index columns // Not found yet // Next index // Table is the same, so just compare index names