Re: [basex-talk] Stack overflow instead of syntax error

2019-09-11 Thread Buddy Kresge
overflow instead of syntax error Hi Buddy, > Here is the snippet of code that originally cause the ‘stack overflow’. The > issue is the date is not in quotes. > > function($endDate as xs:date?) as xs:Boolean There are various syntactical bugs in your example: The "declare"

Re: [basex-talk] Stack overflow instead of syntax error

2019-09-11 Thread Christian Grün
Hi Buddy, > Here is the snippet of code that originally cause the ‘stack overflow’. The > issue is the date is not in quotes. > > function($endDate as xs:date?) as xs:Boolean There are various syntactical bugs in your example: The "declare" is missing, as well as the function name, and it must

[basex-talk] Stack overflow instead of syntax error

2019-09-10 Thread Buddy Kresge
We have some code generation and it produced a syntax error. However, running 9.2.4 in production, the server gave a stack overflow tail recursion instead of "Cannot convert xs:integer to xs:date: 1970." (like the GUI did). Here was the error reported: java.lang.RuntimeException: