sqldata/sqlapibase.cpp
// Split qualified name to schema and object name
Split qualified name to schema and object name
Split qualified name to schema and object name
void SqlApiBase::SplitQualifiedName(const char *qualified, std::string &schema, std::string &object)
{
	if(qualified == NULL)
		return;
	const char *cur = qualified;
	if(strchr(qualified, '.') != NULL)
	{
		while(*cur && *cur != '.')
		{
			schema += *cur;
			cur++;
		}
	}
	if(*cur == '.')
		cur++;
	while(*cur)
	{
		object += *cur;
		cur++;
	}
}
void SqlApiBase :: SplitQualifiedName ( const char * qualified , std :: string & schema , std :: string & object ) { if ( qualified == NULL ) return ; const char * cur = qualified ; if ( strchr ( qualified , ' ' ) != NULL ) { while ( * cur && * cur != ' ' ) { schema += * cur ; cur ++ ; } } if ( * cur == ' ' ) cur ++ ; while ( * cur ) { object += * cur ; cur ++ ; } }
Split qualified name to schema and object name
Split qualified name to schema and object name
// Get schema name // Get object name