
                select
                    XmlTemplateFavorites_id as "XmlTemplateFavorites_id",
                    Error_Code as "Error_Code",
                    Error_Message as "Error_Msg"
                from dbo.p_XmlTemplateFavorites_upd(
                    Server_id := '13101857',
                    XmlTemplateFavorites_id := '890101000004772',
                    XmlTemplate_id := '890101000011055',
                    XmlTemplateFavorites_CountLoad := (1 + COALESCE((
                        SELECT sum(XmlTemplateFavorites_CountLoad)
                        FROM dbo.v_XmlTemplateFavorites
                        WHERE XmlTemplate_id = '890101000011055'
                        AND pmUser_insID = '379429244515'
                    ),0))::int,
                    pmUser_id := '379429244515'
                )
            
