sqlparser/functions.cpp
// POWER in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
POWER in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
POWER in Oracle SQL Server DB2 Sybase ASE Sybase ASA
bool SqlParser::ParseFunctionPower(Token *name, Token* )
{
	if(name == NULL)
		return false;
	STATS_DECL
	STATS_SET_DESC(SQL_FUNC_POWER_DESC)
	Token *value = GetNextToken();
	ParseExpression(value);
	Token *comma = GetNextCharToken(',', L',');
	if(comma == NULL)
		return false;
	Token *power = GetNextToken();
	ParseExpression(power);
	 (void) GetNextCharToken(')', L')');
	FUNC_STATS(name);
	return true;	
}
bool SqlParser :: ParseFunctionPower ( Token * name , Token * ) { if ( name == NULL ) return false ; STATS_DECL STATS_SET_DESC ( SQL_FUNC_POWER_DESC ) Token * value = GetNextToken ( ) ; ParseExpression ( value ) ; Token * comma = GetNextCharToken ( ' ' , L' ' ) ; if ( comma == NULL ) return false ; Token * power = GetNextToken ( ) ; ParseExpression ( power ) ; ( void ) GetNextCharToken ( ' ' , L' ' ) ; FUNC_STATS ( name ) ; return true ; }
POWER in Oracle, SQL Server, DB2, Sybase ASE, Sybase ASA
POWER in Oracle SQL Server DB2 Sybase ASE Sybase ASA
/*open*/ // Parse value // Parse power /*Token *close */