sqlparser/helpers.cpp
// Get position to append new generated declarations
Get position to append new generated declarations
Get position to append new generated declarations
Token* SqlParser::GetDeclarationAppend()
{
	Token *append = _spl_last_declare;
	if(!TOKEN_CMPC(append, ';'))
	{
		while(append != NULL && append->next != NULL)
		{
			if(append->next->IsBlank())
			{
				append = append->next;
				continue;
			}
			if(Token::Compare(append->next, ';', L';') == true)
				append = append->next;
			break;
		}
	}
	if(append == NULL)
		append = _spl_last_declare;
	return append;
}
Token * SqlParser :: GetDeclarationAppend ( ) { Token * append = _spl_last_declare ; if ( ! TOKEN_CMPC ( append , ' ' ) ) { while ( append != NULL && append -> next != NULL ) { if ( append -> next -> IsBlank ( ) ) { append = append -> next ; continue ; } if ( Token :: Compare ( append -> next , ' ' , L' ' ) == true ) append = append -> next ; break ; } } if ( append == NULL ) append = _spl_last_declare ; return append ; }
Get position to append new generated declarations
Get position to append new generated declarations
// Skip ; that can follow the last declaration // Skip spaces