sqldata/sqlifmxapi.cpp
// Get a list of columns for specified primary or unique key
Get a list of columns for specified primary or unique key
Get a list of columns for specified primary or unique key
int SqlIfmxApi::GetKeyConstraintColumns(SqlConstraints &cns, std::list<std::string> &output, std::list<std::string> *)
{
	bool found = false;
	for(std::list<SqlIndColumns>::iterator i = _table_ind_columns.begin(); i != _table_ind_columns.end(); i++)
	{
		if((*i).tabid != cns.tabid)
		{
			if(found == false)
				continue;
			else
				break;
		}
		if((*i).index != NULL && cns.idxname != NULL && strcmp((*i).index, cns.idxname) == 0)
		{
			output.push_back((*i).column);
			found = true;
		}
	}
	return 0;
}
int SqlIfmxApi :: GetKeyConstraintColumns ( SqlConstraints & cns , std :: list < std :: string > & output , std :: list < std :: string > * ) { bool found = false ; for ( std :: list < SqlIndColumns > :: iterator i = _table_ind_columns . begin ( ) ; i != _table_ind_columns . end ( ) ; i ++ ) { if ( ( * i ) . tabid != cns . tabid ) { if ( found == false ) continue ; else break ; } if ( ( * i ) . index != NULL && cns . idxname != NULL && strcmp ( ( * i ) . index , cns . idxname ) == 0 ) { output . push_back ( ( * i ) . column ) ; found = true ; } } return 0 ; }
Get a list of columns for specified primary or unique key
Get a list of columns for specified primary or unique key
// Find index columns // Not found yet // Next index