Issue with fix for bug 1251789?
Added by Anonymous over 19 years ago
Legacy ID: #3280654 Legacy Poster: marcvc (marcvc)
Michael, this might well be seen as a continuation of the thread https://sourceforge.net/forum/message.php?msg_id=3279739 and the corresponding fix described in https://sourceforge.net/tracker/index.php?func=detail&aid=1251789&group_id=29872&atid=397617. Consider the following query: declare function local:foo($i as xs:integer) as xs:integer {$i}; <e e='{local:foo('1' cast as xs:integer)}'/> After applying the fix referenced above, we get the following error: XPTY0004: Required item type of first argument of local:foo() is xs:integer; supplied value has item type xs:string Thanks, Marc
Replies (1)
RE: Issue with fix for bug 1251789? - Added by Anonymous over 19 years ago
Legacy ID: #3283048 Legacy Poster: Michael Kay (mhkay)
I've added a further patch to: https://sourceforge.net/tracker/index.php?func=detail&aid=1251789&group_id=29872&atid=397617 What was happening was that a function call processed in scan-only mode was being registered with the function declaration for subsequent type-checking - this could cause all kinds of problems (quite independently of the first patch), for example if one of the arguments is a variable reference, and has therefore been suppressed. Michael Kay
Please register to reply