Fixed recursion limit of 100 error that happened when inserting a transition in the 137th procedure of a large procedure set

This commit is contained in:
John Jenko 2014-08-06 18:24:40 +00:00
parent 37a481db24
commit c21ca1547d

View File

@ -5545,7 +5545,7 @@ join itemz zz on pp.itemid = zz.itemid
join items ii on ii.contentid = pp.contentid join items ii on ii.contentid = pp.contentid
) )
select top 1 @ParentID = itemid from itemz select top 1 @ParentID = itemid from itemz
where isfound = 1 where isfound = 1 OPTION (MAXRECURSION 10000)
RETURN @ParentID RETURN @ParentID
END END
GO GO