fixed syntax error
This commit is contained in:
parent
0614d01751
commit
1a65b51312
@ -2269,6 +2269,10 @@ select * from vefn_SiblingAndChildrenItemsByProc(30) II
|
|||||||
join
|
join
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||||
|
Copyright 2012 - Volian Enterprises, Inc. All rights reserved.
|
||||||
|
*****************************************************************************/
|
||||||
CREATE FUNCTION [dbo].[vefn_SiblingAndChildrenItemsByProc](@ProcID int)
|
CREATE FUNCTION [dbo].[vefn_SiblingAndChildrenItemsByProc](@ProcID int)
|
||||||
RETURNS @SiblingAndChildren TABLE
|
RETURNS @SiblingAndChildren TABLE
|
||||||
(
|
(
|
||||||
@ -2354,7 +2358,7 @@ Union All
|
|||||||
PPath + case C.Type/10000
|
PPath + case C.Type/10000
|
||||||
when 0 then @Delim + C.Number + @DelimNumber + C.Text
|
when 0 then @Delim + C.Number + @DelimNumber + C.Text
|
||||||
when 1 then @Delim + C.Number + @DelimNumber + C.Text
|
when 1 then @Delim + C.Number + @DelimNumber + C.Text
|
||||||
else case when .dbo.vefn_GetLastDelim(Path) = '.' @DelimStep else @Delim end + cast(Ordinal + 2 as varchar(3))
|
else case when .dbo.vefn_GetLastDelim(Path) = '.' then @DelimStep else @Delim end + cast(Ordinal + 2 as varchar(3))
|
||||||
end Path, 0,
|
end Path, 0,
|
||||||
POrdinalPath,
|
POrdinalPath,
|
||||||
POrdinalPath + right('00000' + cast(Z.[Ordinal] + 2 as varchar(5)), 5)
|
POrdinalPath + right('00000' + cast(Z.[Ordinal] + 2 as varchar(5)), 5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user