sqldata/sqlapibase.cpp
// Check if identifier is a reserved word
Check if identifier is a reserved word
Check if identifier is a reserved word
bool SqlApiBase::IsReservedWord(const char *name)
{
	if(name == NULL)
		return false;
	bool exists = false;
	for(std::list<std::string>::iterator i = _reserved_words_ddl.begin(); i != _reserved_words_ddl.end(); i++)
	{
		if(_stricmp((*i).c_str(), name) == 0)
		{
			exists = true;
			break;
		}
	}
	return exists;
}
bool SqlApiBase :: IsReservedWord ( const char * name ) { if ( name == NULL ) return false ; bool exists = false ; for ( std :: list < std :: string > :: iterator i = _reserved_words_ddl . begin ( ) ; i != _reserved_words_ddl . end ( ) ; i ++ ) { if ( _stricmp ( ( * i ) . c_str ( ) , name ) == 0 ) { exists = true ; break ; } } return exists ; }
Check if identifier is a reserved word
Check if identifier is a reserved word
// Find a reserved word