sqldata/sqlsncapi.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 SqlSncApi::GetIndexColumns(SqlIndexes &idx, std::list<std::string> &idx_cols, std::list<std::string> &idx_sorts)
{
	for(std::list<SqlIndColumns>::iterator i = _table_ind_columns.begin(); i != _table_ind_columns.end(); i++)
	{
		if((*i).tabid == idx.tabid && (*i).idxid == idx.idxid)
		{
			idx_cols.push_back((*i).column);
			idx_sorts.push_back("");
		}
	}
	return 0;
}
int SqlSncApi :: GetIndexColumns ( SqlIndexes & idx , std :: list < std :: string > & idx_cols , std :: list < std :: string > & idx_sorts ) { for ( std :: list < SqlIndColumns > :: iterator i = _table_ind_columns . begin ( ) ; i != _table_ind_columns . end ( ) ; i ++ ) { if ( ( * i ) . tabid == idx . tabid && ( * i ) . idxid == idx . idxid ) { idx_cols . push_back ( ( * i ) . column ) ; idx_sorts . push_back ( " " ) ; } } return 0 ; }
Get a list of columns for specified index
Get a list of columns for specified index
// Find index columns