bug in BaseX104 with function arity determination

Monday, 30 January 2023 · 4 messages · last reply 31 Jan 2023
RS
Rob Stapper30 Jan 2023 16:10 #
Hi Christian, See attachment. When running, function ‘local:test1a’ triggers an error: ‘[XPTY0004] 2 arguments supplied, 3 expected: $f’. It looks like the arity of a function is incorrectly determined when called with a partial parameter set. ‘function ‘local:test1b’ is a workaround. Can you please have a look at this? Thanx in advance, Rob Stapper Sent from Mail for Windows
-- This email has been checked for viruses by Avast antivirus software. www.avast.com
CG
Christian Grün30 Jan 2023 22:44 #
Hi Rob, Thanks for the bug report, I’ve created a new issue [1]. We’ll try to fix this soon. Best, Christian [1] https://github.com/BaseXdb/basex/issues/2166
Quoted text · Rob Stapper · 40 lines
On Mon, Jan 30, 2023 at 4:10 PM Rob Stapper <r.stapper at lijbrandt.nl> wrote: > Hi Christian, > > > > See attachment. > > > > When running, function ‘local:test1a’ triggers an error: ‘[XPTY0004] 2 > arguments supplied, 3 expected: $f’. > > It looks like the arity of a function is incorrectly determined when > called with a partial parameter set. > > ‘function ‘local:test1b’ is a workaround. > > > > Can you please have a look at this? > > > > Thanx in advance, > > Rob Stapper > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-3892421310976342755_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >
CG
Christian Grünin reply to Rob Stapper, 30 Jan 2023, 16:1030 Jan 2023 23:18 #
The bug was introduced with BaseX 10.1. A snapshot with a bug fix is available [1]. Best, Christian [1] https://files.basex.org/releases/latest/
Quoted text · Rob Stapper · 40 lines
On Mon, Jan 30, 2023 at 4:10 PM Rob Stapper <r.stapper at lijbrandt.nl> wrote: > Hi Christian, > > > > See attachment. > > > > When running, function ‘local:test1a’ triggers an error: ‘[XPTY0004] 2 > arguments supplied, 3 expected: $f’. > > It looks like the arity of a function is incorrectly determined when > called with a partial parameter set. > > ‘function ‘local:test1b’ is a workaround. > > > > Can you please have a look at this? > > > > Thanx in advance, > > Rob Stapper > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-3892421310976342755_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >
RS
Rob Stapper31 Jan 2023 09:26 #
Hi Christian, Yes, the bug doesn’t occur anymore. Excellent work, as allways. 😊 Thanx. Best, Rob Sent from Mail for Windows
Quoted text · Christian Grün · 24 lines
From: Christian Grün Sent: Monday, January 30, 2023 11:19 PM To: Rob Stapper Cc: basex-talk at mailman.uni-konstanz.de Subject: Re: [basex-talk] bug in BaseX104 with function arity determination The bug was introduced with BaseX 10.1. A snapshot with a bug fix is available [1]. Best, Christian [1] https://files.basex.org/releases/latest/ On Mon, Jan 30, 2023 at 4:10 PM Rob Stapper <r.stapper at lijbrandt.nl> wrote: Hi Christian, See attachment. When running, function ‘local:test1a’ triggers an error: ‘[XPTY0004] 2 arguments supplied, 3 expected: $f’. It looks like the arity of a function is incorrectly determined when called with a partial parameter set. ‘function ‘local:test1b’ is a workaround. Can you please have a look at this? Thanx in advance, Rob Stapper Sent from Mail for Windows Virus-free.www.avast.com -- This email has been checked for viruses by Avast antivirus software. www.avast.com

⚡Generated with XQuery