I have an SQL Server stored procedure that ressembles this:
CREATE PROCEDURE [jp].[GetFoo] @Guid UNIQUEIDENTIFIER AS SELECT CONVERT(BIT, (CASE WHEN
Make this modification: isnull([dbo].[GetBar](T.Col2), 0)
isnull([dbo].[GetBar](T.Col2), 0)