Skip to content

Commit

Permalink
SYMMETRICDS-537 - Ping pongs happens when collation is set to Latin1_…
Browse files Browse the repository at this point in the history
…General_CI_AS on SQL Server because 0x0 aren't stripped from source_node_id when it is pulled from context_info()
  • Loading branch information
chenson42 committed Oct 27, 2011
1 parent e132d1e commit fa321a4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@
create function dbo.$(functionName)() returns varchar(50)
begin
declare @node varchar(50);
set @node = coalesce(replace(substring(cast(context_info() as varchar), 2, 50), 0x0, ''), '');
set @node = coalesce(replace(substring(cast(context_info() as varchar) collate SQL_Latin1_General_CP1_CI_AS, 2, 50), 0x0, ''), '');
return @node;
end
]]>
Expand Down

0 comments on commit fa321a4

Please sign in to comment.