sqlparser/functions.cpp
// RANK analytic function in DB2, Oracle
RANK analytic function in DB2, Oracle
RANK analytic function in DB2 Oracle
bool SqlParser::ParseFunctionRank(Token *name, Token* )
{
	if(name == NULL)
		return false;
	STATS_DECL
	STATS_SET_DESC(SQL_FUNC_RANK_DESC)
	 (void) GetNextCharToken(')', L')');
	Token *over = GetNextWordToken("OVER", L"OVER", 4);
	if(over != NULL)
		ParseAnalyticFunctionOverClause(over);
	FUNC_STATS(name);
	return true;
}
bool SqlParser :: ParseFunctionRank ( Token * name , Token * ) { if ( name == NULL ) return false ; STATS_DECL STATS_SET_DESC ( SQL_FUNC_RANK_DESC ) ( void ) GetNextCharToken ( ' ' , L' ' ) ; Token * over = GetNextWordToken ( " " , L" " , 4 ) ; if ( over != NULL ) ParseAnalyticFunctionOverClause ( over ) ; FUNC_STATS ( name ) ; return true ; }
RANK analytic function in DB2, Oracle
RANK analytic function in DB2 Oracle
/*open*/ /*Token *close */ // OVER keyword