sqlparser/functions.cpp
// SQL Server, DB2, Sybase ASA CURRENT_USER
SQL Server, DB2, Sybase ASA CURRENT_USER
SQL Server DB2 Sybase ASA CURRENT_USER
bool SqlParser::ParseFunctionCurrentUser(Token *name)
{
	if(name == NULL)
		return false;
	STATS_DECL
	if(_source != SQL_SQL_SERVER && _target == SQL_SQL_SERVER)
		Token::Change(name, "SYSTEM_USER", L"SYSTEM_USER", 11);
	else
	if(_target == SQL_ORACLE)
		Token::Change(name, "USER", L"USER", 4);
	FUNC_STATS(name);
	return true;
}
bool SqlParser :: ParseFunctionCurrentUser ( Token * name ) { if ( name == NULL ) return false ; STATS_DECL if ( _source != SQL_SQL_SERVER && _target == SQL_SQL_SERVER ) Token :: Change ( name , " " , L" " , 11 ) ; else if ( _target == SQL_ORACLE ) Token :: Change ( name , " " , L" " , 4 ) ; FUNC_STATS ( name ) ; return true ; }
SQL Server, DB2, Sybase ASA CURRENT_USER
SQL Server DB2 Sybase ASA CURRENT_USER
// SQL Server has CURRENT_USER but it returns dbo i.e