sqlparser/functions.cpp
bool SqlParser::ParseFunctionRowNumber(Token *name, Token* /*open*/)
{
	if(name == NULL)
		return false;

	STATS_DECL
	STATS_SET_DESC(SQL_FUNC_ROW_NUMBER_DESC)

	/*Token *close */ (void) GetNextCharToken(')', L')');
	
	// OVER keyword
	Token *over = GetNextWordToken("OVER", L"OVER", 4);

	if(over != NULL)
		ParseAnalyticFunctionOverClause(over);

	STATS_SET_CONV_NO_NEED(Target(SQL_MARIADB, SQL_MARIADB_ORA))  
	FUNC_STATS(name);

	return true;
}
// ROW_NUMBER analytic function in DB2, Oracle, MariaDB
ROW_NUMBER analytic function in DB2, Oracle, MariaDB
ROW_NUMBER analytic function in DB2 Oracle MariaDB
bool SqlParser::ParseFunctionRowNumber(Token *name, Token* )
{
	if(name == NULL)
		return false;
	STATS_DECL
	STATS_SET_DESC(SQL_FUNC_ROW_NUMBER_DESC)
	 (void) GetNextCharToken(')', L')');
	Token *over = GetNextWordToken("OVER", L"OVER", 4);
	if(over != NULL)
		ParseAnalyticFunctionOverClause(over);
	STATS_SET_CONV_NO_NEED(Target(SQL_MARIADB, SQL_MARIADB_ORA))  
	FUNC_STATS(name);
	return true;
}
bool SqlParser :: ParseFunctionRowNumber ( Token * name , Token * ) { if ( name == NULL ) return false ; STATS_DECL STATS_SET_DESC ( SQL_FUNC_ROW_NUMBER_DESC ) ( void ) GetNextCharToken ( ' ' , L' ' ) ; Token * over = GetNextWordToken ( " " , L" " , 4 ) ; if ( over != NULL ) ParseAnalyticFunctionOverClause ( over ) ; STATS_SET_CONV_NO_NEED ( Target ( SQL_MARIADB , SQL_MARIADB_ORA ) ) FUNC_STATS ( name ) ; return true ; }
ROW_NUMBER analytic function in DB2, Oracle, MariaDB
ROW_NUMBER analytic function in DB2 Oracle MariaDB
/*open*/ /*Token *close */ // OVER keyword