Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-30 Thread Nuno Job
> > apply-in-new-transaction-invoker.xqy: > - > declare namespace aint = "apply-in-new-transaction"; > > declare option xdmp:update "true"; > > declare variable $aint:function as xdmp:function external; > declare variable $aint:params as item()* external;

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread Michael Blakeley
ation by others is strictly prohibited. If you are not the > > intended recipient, please notify us immediately by returning this message > > to the sender and delete all copies. Thank you for your cooperation. > > > > > > Fr

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
.com > To: general@developer.marklogic.com > Date: Fri, 29 Jul 2011 14:27:21 -0700 > Subject: Re: [MarkLogic Dev General] Cannot apply an update function from a > query > > Yes. > > If you want to force update mode, you can use this option in the prolog of > your calli

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread Colleen Whitney
r.marklogic.com [general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com [seme...@hotmail.com] Sent: Friday, July 29, 2011 2:27 PM To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Cannot apply an update function from a query Ok. So did static analysis not

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
1 14:19:32 -0700 To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Cannot apply an update function from a query On Jul 29, 2011, at 2:08 PM, seme...@hotmail.com wrote:Am I going to have to xdmp:eval or xdmp:invoke the function and declare it to be in a separate t

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread Jason Hunter
On Jul 29, 2011, at 2:08 PM, seme...@hotmail.com wrote: > Am I going to have to xdmp:eval or xdmp:invoke the function and declare it to > be in a separate transaction? Yes. You can eval or invoke the function or the apply of the function. -jh- ___ G

[MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
I was trying to xdmp:apply an xdmp:function and got the error "Cannot apply an update function from a query". I don't really want to change the calling function to an update query because most of the time it will be just a query query. So I'm wondering what my options are. Am I going to have