sqlparser/functions.cpp
// LOG in Oracle, SQL Server, MySQL, Sybase ASE, Sybase ASA
LOG in Oracle, SQL Server, MySQL, Sybase ASE, Sybase ASA
LOG in Oracle SQL Server MySQL Sybase ASE Sybase ASA
bool SqlParser::ParseFunctionLog(Token *name, Token* )
{
	if(name == NULL)
		return false;
	STATS_DECL
	STATS_SET_DESC(SQL_FUNC_LOG_DESC)
	Token *num1 = GetNextToken();
	if(num1 == NULL)
		return false;
	ParseExpression(num1);
	Token *comma = GetNextCharToken(',', L',');
	Token *num2 = NULL;
	if(comma != NULL)
	{
		num2 = GetNextToken();
		if(num2 == NULL)
			return false;
		ParseExpression(num2);
	}
	 (void) GetNextCharToken(')', L')');
	STATS_SET_CONV_NO_NEED(true) 
	FUNC_STATS(name);
	return true;
}
bool SqlParser :: ParseFunctionLog ( Token * name , Token * ) { if ( name == NULL ) return false ; STATS_DECL STATS_SET_DESC ( SQL_FUNC_LOG_DESC ) Token * num1 = GetNextToken ( ) ; if ( num1 == NULL ) return false ; ParseExpression ( num1 ) ; Token * comma = GetNextCharToken ( ' ' , L' ' ) ; Token * num2 = NULL ; if ( comma != NULL ) { num2 = GetNextToken ( ) ; if ( num2 == NULL ) return false ; ParseExpression ( num2 ) ; } ( void ) GetNextCharToken ( ' ' , L' ' ) ; STATS_SET_CONV_NO_NEED ( true ) FUNC_STATS ( name ) ; return true ; }
LOG in Oracle, SQL Server, MySQL, Sybase ASE, Sybase ASA
LOG in Oracle SQL Server MySQL Sybase ASE Sybase ASA
/*open*/ // Parse num1 // Num2 is optional in Oracle, MySQL // Parse num2 /*Token *close */