Latest update is breaking the code using Format SQL
JOIN [dbo].[Location] AS [l]
ON [ld].[LocationId] = [l].[Id]
CROSS APPLY [dbo].[GetLocationAndChildren]([l].[Id]) AS [t]

changes to 
JOIN [dbo].[Location] AS [l]
ON [ld].[LocationId] = [l].[Id]
CROSS APPLY [dbo].[GetLocationAndChildren]([Id]) AS [t]

It removes alias within the function parameter causing Ambiguous column name 'Id'.

mck
0

Comments

1 comment

  • Russell D
    I'm pretty certain this is down to a bug we're in the process of investigating, but can you confirm if you're using 'qualify object names'? If so, disable it and retry.
    Russell D
    0

Add comment

Please sign in to leave a comment.