Comment 9 for bug 1064978

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

I can not find the original test case any more.
I also double checked and there are no FOTS failures caused by this issue: have to remove the "fots" TAG.

Let's assume this test-case:

   <test-case name="example">
      <environment>
         <param name="ext" select="5" declared="true"/>
      </environment>
      <test>declare variable $ext as xs:integer external := 0; $ext</test>
      <result>
         <assert-type>xs:integer</assert-type>
      </result>
   </test-case>

Here, the FOTS driver does not "know" the type of the variable (without scanning the test off course) so
all the FOTS driver can do is bind the variable as
xqxq:bind-variable( $queryID, xs:QName("ext"), "5");

But this will fail because the correct declaration (in the current XQXQ version) should be:
xqxq:bind-variable( $queryID, xs:QName("ext"), xs:integer(5));

HTH.