sqldata/sqlapibase.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 SqlApiBase::GetKeyConstraintColumns(SqlConstraints &cns, std::string &output)
{
	std::list<std::string> columns;
	int rc = GetKeyConstraintColumns(cns, columns);
	int c = 0;
	for(std::list<std::string>::iterator i = columns.begin(); i != columns.end(); i++)
	{
		if(c > 0)
			output += ", ";
		output += (*i);
		c++;
	}
	return rc;
}
int SqlApiBase :: GetKeyConstraintColumns ( SqlConstraints & cns , std :: string & output ) { std :: list < std :: string > columns ; int rc = GetKeyConstraintColumns ( cns , columns ) ; int c = 0 ; for ( std :: list < std :: string > :: iterator i = columns . begin ( ) ; i != columns . end ( ) ; i ++ ) { if ( c > 0 ) output += " " ; output += ( * i ) ; c ++ ; } return rc ; }
Get a list of columns for specified primary or unique key
Get a list of columns for specified primary or unique key
// Each driver redefines the way to get the list of columns