Fixes problem of PROMS exiting with an error when adding a new procedure

This commit is contained in:
John Jenko 2015-05-21 19:44:35 +00:00
parent 61507043d4
commit fe3ba6f8eb

View File

@ -10837,7 +10837,7 @@ WITH EXECUTE AS OWNER
AS
BEGIN
SELECT
dbo.ve_GetParentItem(ii.[ItemID]) ParentID,MAX(CONVERT(bigint,ii.[LastChanged])) LastItemChange
isnull(dbo.ve_GetParentItem(ii.[ItemID]),0) ParentID,MAX(CONVERT(bigint,ii.[LastChanged])) LastItemChange
FROM [Items] ii
WHERE CONVERT(bigint,ii.LastChanged) > @LastChanged
-- AND cc.UserID != @UserID