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
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
On Mon, Jan 30, 2023 at 4:10 PM Rob Stapper r.stapper@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>
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@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>
Hi Christian,
Yes, the bug doesn’t occur anymore. Excellent work, as allways. 😊 Thanx.
Best, Rob
Sent from Mail for Windows
From: Christian Grün Sent: Monday, January 30, 2023 11:19 PM To: Rob Stapper Cc: basex-talk@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@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
basex-talk@mailman.uni-konstanz.de