B2018-017 - Search for Degree symbol in Word Sections was not working. This has been fixed.

This commit is contained in:
Rich 2018-01-29 18:47:56 +00:00
parent 9c1f58eb0b
commit dd3c6b2fae

View File

@ -1959,8 +1959,8 @@ select DvPath, Path, I.[Level],I.[FromType],I.[Ordinal], I.[ParentID], I.[ItemID
(isnull(@SearchString,'')='' (isnull(@SearchString,'')=''
OR (@CaseSensitive = 1 AND .dbo.vefn_RemoveExtraText(C.Text,@IncludeLinks, @IncludeRtfFormatting, @IncludeSpecialCharacters) like @SearchString Collate SQL_Latin1_General_CP1_CS_AS) OR (@CaseSensitive = 1 AND .dbo.vefn_RemoveExtraText(C.Text,@IncludeLinks, @IncludeRtfFormatting, @IncludeSpecialCharacters) like @SearchString Collate SQL_Latin1_General_CP1_CS_AS)
OR (@CaseSensitive = 0 AND .dbo.vefn_RemoveExtraText(C.Text,@IncludeLinks, @IncludeRtfFormatting, @IncludeSpecialCharacters) like @SearchString Collate SQL_Latin1_General_CP1_CI_AS) OR (@CaseSensitive = 0 AND .dbo.vefn_RemoveExtraText(C.Text,@IncludeLinks, @IncludeRtfFormatting, @IncludeSpecialCharacters) like @SearchString Collate SQL_Latin1_General_CP1_CI_AS)
OR (@CaseSensitive = 1 AND D.DocAscii like @SearchString Collate SQL_Latin1_General_CP1_CS_AS) OR (@CaseSensitive = 1 AND Replace(D.DocAscii,'°','\''B0') like @SearchString Collate SQL_Latin1_General_CP1_CS_AS)
OR (@CaseSensitive = 0 AND D.DocAscii like @SearchString Collate SQL_Latin1_General_CP1_CI_AS) OR (@CaseSensitive = 0 AND Replace(D.DocAscii,'°','\''B0') like @SearchString Collate SQL_Latin1_General_CP1_CI_AS)
) )
AND AND
((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/) ((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/)
@ -3074,7 +3074,7 @@ ELSE
join Entries E on C.ContentID = E.ContentID join Entries E on C.ContentID = E.ContentID
join Documents D on E.DocID = D.DocID join Documents D on E.DocID = D.DocID
where where
(D.DocAscii like @SearchString OR D.DocAscii like @SearchStringx Collate SQL_Latin1_General_CP1_CI_AS) (Replace(D.DocAscii,'°','\''B0') like @SearchString OR Replace(D.DocAscii,'°','\''B0') like @SearchStringx Collate SQL_Latin1_General_CP1_CI_AS)
AND AND
((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/) ((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/)
or ((dbo.vefn_AllSections(C.Type) in (Select ID from vefn_SplitInt(@StepTypeList,','))))) or ((dbo.vefn_AllSections(C.Type) in (Select ID from vefn_SplitInt(@StepTypeList,',')))))
@ -3101,7 +3101,7 @@ ELSE
join Entries E on C.ContentID = E.ContentID join Entries E on C.ContentID = E.ContentID
join Documents D on E.DocID = D.DocID join Documents D on E.DocID = D.DocID
where where
(D.DocAscii like @SearchString OR D.DocAscii like @SearchStringx Collate SQL_Latin1_General_CP1_CS_AS) (Replace(D.DocAscii,'°','\''B0') like @SearchString OR Replace(D.DocAscii,'°','\''B0') like @SearchStringx Collate SQL_Latin1_General_CP1_CS_AS)
AND AND
((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/) ((isnull(@StepTypeList,'') = '' /*and dbo.vefn_AllSections(C.Type)>=10000*/)
or ((dbo.vefn_AllSections(C.Type) in (Select ID from vefn_SplitInt(@StepTypeList,','))))) or ((dbo.vefn_AllSections(C.Type) in (Select ID from vefn_SplitInt(@StepTypeList,',')))))
@ -13799,8 +13799,8 @@ BEGIN TRY -- Try Block
set nocount on set nocount on
DECLARE @RevDate varchar(255) DECLARE @RevDate varchar(255)
DECLARE @RevDescription varchar(255) DECLARE @RevDescription varchar(255)
set @RevDate = '1/16/2018 3:32 PM' set @RevDate = '1/29/2018 1:11 PM'
set @RevDescription = 'Fixed Search to find text including superscripts' set @RevDescription = 'Fixed Search to find text including degrees in Word Sections'
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
IF( @@TRANCOUNT > 0 ) COMMIT IF( @@TRANCOUNT > 0 ) COMMIT