sqlparser/functions.cpp
// ROUND in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
ROUND in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
ROUND in Oracle SQL Server DB2 Sybase ASE Sybase ASA
bool SqlParser::ParseFunctionRound(Token *name, Token* )
{
	if(name == NULL)
		return false;
	STATS_DECL
    STATS_SET_DESC(SQL_FUNC_ROUND_DESC)
	Token *exp = GetNextToken();
	if(exp == NULL)
		return false;
	ParseExpression(exp);
	Token *comma = GetNextCharToken(',', L',');
	Token *exp2 = NULL;
	if(comma != NULL)
	{
		exp2 = GetNextToken();
		ParseExpression(exp2);
	}
	 (void) GetNextCharToken(')', L')');
	FUNC_STATS(name);
	return true;
}
bool SqlParser :: ParseFunctionRound ( Token * name , Token * ) { if ( name == NULL ) return false ; STATS_DECL STATS_SET_DESC ( SQL_FUNC_ROUND_DESC ) Token * exp = GetNextToken ( ) ; if ( exp == NULL ) return false ; ParseExpression ( exp ) ; Token * comma = GetNextCharToken ( ' ' , L' ' ) ; Token * exp2 = NULL ; if ( comma != NULL ) { exp2 = GetNextToken ( ) ; ParseExpression ( exp2 ) ; } ( void ) GetNextCharToken ( ' ' , L' ' ) ; FUNC_STATS ( name ) ; return true ; }
ROUND in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
ROUND in Oracle SQL Server DB2 Sybase ASE Sybase ASA
/*open*/ // Parse first expression // Second expression is optional in Oracle, DB2, MySQL // Parse second expression /*Token *close */