function-lookup with "db:replace" (8.4 -> 8.4.3)

Wednesday, 27 April 2016 · 2 messages
WS
Wiemer, Sebastian27 Apr 2016 18:17 #
Hi everyone! I stumbled over a problem after upgrading BaseX from version 8.4 to 8.4.3.: db:replace does not work (no error message), when used in a function-lookup. Has anyone made a similar observation? Is there any other way to add a document to a collection? XQuery update still works. Best regards, Sebastian
Quoted text · 2 lines
------------------------------------------------------- >>> business. people. technology. <<<
------------------------------------------------------- adesso AG mit Sitz in Dortmund Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn Amtsgericht Dortmund HRB 20663
CG
Christian Grün27 Apr 2016 18:24 #
Hi Sebastian, The following query should work fine (at least with the latest snapshot; I haven’t tried 8.4.3):
  let $f := function-lookup(xs:QName('db:replace'), 3)
  return updating $f('db', 'x.xml', <a/>)
Did you specify the "updating" keyword [1]? Could you give us a little example? Best, Christian [1] http://docs.basex.org/wiki/XQuery_Update#User-Defined_Functions
Quoted text · Sebastian · 28 lines
On Wed, Apr 27, 2016 at 6:17 PM, Wiemer, Sebastian < Sebastian.Wiemer at adesso.de> wrote: > Hi everyone! > > I stumbled over a problem after upgrading BaseX from version 8.4 to 8.4.3. > : > db:replace does not work (no error message), when used in a > function-lookup. > > Has anyone made a similar observation? > Is there any other way to add a document to a collection? XQuery update > still works. > > Best regards, > Sebastian > > ------------------------------------------------------- > >>> business. people. technology. <<< > ------------------------------------------------------- > > adesso AG mit Sitz in Dortmund > Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis > Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn > Amtsgericht Dortmund HRB 20663 > > > <https://www.aaajobs.de/de/atmosphaere/adesso_ist_deutschlands_bester_arbeitgeber.html?utm_source=Signatur&utm_medium=Banner%20E-Mail&utm_campaign=GPTW> >

⚡Generated with XQuery