sqlparser/sqlparser.cpp
// Get next token that must be identifier
Get next token that must be identifier
Get next token that must be identifier
Token* SqlParser::GetNextIdentToken(int expected_type, int scope)
{
	Token *token = GetNextToken();
	if(token == NULL)
		return NULL;
	if(token->type == TOKEN_WORD || token->type == TOKEN_IDENT)
		ConvertIdentifier(token, expected_type, scope);
	if(token->chr != 0 || token->wchr != 0)
	{
		PushBack(token);
		return NULL;
	}
	return token;
}
Token * SqlParser :: GetNextIdentToken ( int expected_type , int scope ) { Token * token = GetNextToken ( ) ; if ( token == NULL ) return NULL ; if ( token -> type == TOKEN_WORD || token -> type == TOKEN_IDENT ) ConvertIdentifier ( token , expected_type , scope ) ; if ( token -> chr != 0 || token -> wchr != 0 ) { PushBack ( token ) ; return NULL ; } return token ; }
Get next token that must be identifier
Get next token that must be identifier
// If it is a word token, convert identifier // Must not be a single char token (non-alpabetical)