sqlparser/sqlserver.cpp
// Convert user-defined function name in function call
Convert user-defined function name in function call
Convert user - defined function name in function call
void SqlParser::SqlServerConvertUdfIdentifier(Token *name)
{
	if(name == NULL)
		return;
	int parts = GetIdentPartsCount(name);
	if(parts == 1)
	{
		TokenStr name2("dbo.", L"dbo.", 4);
		name2.Append(name);
		Token::ChangeNoFormat(name, name2);
	}
}
void SqlParser :: SqlServerConvertUdfIdentifier ( Token * name ) { if ( name == NULL ) return ; int parts = GetIdentPartsCount ( name ) ; if ( parts == 1 ) { TokenStr name2 ( " " , L" " , 4 ) ; name2 . Append ( name ) ; Token :: ChangeNoFormat ( name , name2 ) ; } }
Convert user-defined function name in function call
Convert user - defined function name in function call
// SQL Server requires explicit schema/owner name for calling UDFs