Re: [Sedna-discussion] update from xquery functions

2014-09-01 Thread Ilya Taranov
This is not possible. It used to be in plans, but I am not sure of it's
current status.


On Mon, Sep 1, 2014 at 6:37 AM, Milan Vidaković  wrote:

>  Hi all,
>
> in exist db I am able to make and invoke function which contains update:
>
>  declare function local:doInsertDokument($tip as xs:string, $sbroj as
> xs:positiveInteger, $datizd as xs:date, $jmbg as xs:string)
>
> as xs:boolean{
>
> let $i := update insert  datizd="{$datizd}" jmbg="{$jmbg}"/> preceding
> doc("sup.xml")//sup/Dokument[1]
>
> return true()
>
> };
>
> I wasn't able to do so in Sedna, and as far as I understand, it is not
> possible (yet). Is it really not possible to make function which contains
> update, and if it is not possible, are there any plans to enable this?
>
> --
> Best regards,
>
> Milan
>
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


[Sedna-discussion] update from xquery functions

2014-09-01 Thread Milan Vidaković

Hi all,

in exist db I am able to make and invoke function which contains update:

declare function local:doInsertDokument($tip as xs:string, $sbroj as 
xs:positiveInteger, $datizd as xs:date, $jmbg as xs:string)


as xs:boolean{

let $i := update insert datizd="{$datizd}" jmbg="{$jmbg}"/> preceding 
doc("sup.xml")//sup/Dokument[1]


return true()

};


I wasn't able to do so in Sedna, and as far as I understand, it is not 
possible (yet). Is it really not possible to make function which 
contains update, and if it is not possible, are there any plans to 
enable this?


--
Best regards,

Milan

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion