This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2937 - extvardeclwithouttype-xx tests with static typing
Summary: extvardeclwithouttype-xx tests with static typing
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 23:33 UTC by Marc Van Cappellen
Modified: 2006-07-06 13:12 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-02-24 23:33:08 UTC
A number of the extvardeclwithouttype tests fail with processors implementing 
static typing.

Statically the external variables are typed as item()*, uisng these external 
variables in for example operators result in a XPTY0004 error.

I see the following options:
- make XPTY0004 an expected error (in addition to the current expected result)
- add a constructor function when using the variable as operand.

Here is the complete list:
extvardeclwithouttype-10.xq
extvardeclwithouttype-11.xq
extvardeclwithouttype-12.xq
extvardeclwithouttype-13.xq
extvardeclwithouttype-14.xq
extvardeclwithouttype-15.xq
extvardeclwithouttype-16.xq
extvardeclwithouttype-17.xq
extvardeclwithouttype-20.xq
extvardeclwithouttype-21.xq
extvardeclwithouttype-22.xq

Thanks,
Marc
Comment 1 Carmelo Montanez 2006-03-22 19:10:14 UTC
Hey Marc:

Thanks for the comment.  The first query on these tests follow the pattern

let $var := 1
return $var)

I changed part of the query to 
let $var := 1
return xs:sometype($var)

The second query follows:

declare variable $x as external;
$x + $x

I changed part of that query to:

declare variable $x as xs:sometype external;


Please close the bug if in agreement and when able to veryfy with next realease.

Thanks,
Carmelo
Comment 2 Marc Van Cappellen 2006-05-17 22:13:23 UTC
verified and looks ok
Comment 3 Marc Van Cappellen 2006-06-26 19:27:19 UTC
Hi,

I think this one needs to be reopened. There seem to be more queries suffering.
Note that none of these queries were reported before. Moving forward with our testing we found these additional ones.

extvardeclwithouttype-2.xq
extvardeclwithouttype-3.xq
extvardeclwithouttype-4.xq
extvardeclwithouttype-5.xq
extvardeclwithouttype-6.xq
extvardeclwithouttype-7.xq
extvardeclwithouttype-8.xq
extvardeclwithouttype-9.xq

Thanks,
Marc
Comment 4 Carmelo Montanez 2006-06-28 15:34:56 UTC
Marc:

Similar changed done although, Looking back at it, perhaps the thing to dod is just allow fo rthe extra outcome (or an error).

Thanks,
Carmelo
Comment 5 Marc Van Cappellen 2006-06-28 15:48:48 UTC
yes, adding an error code rather than the current apporach is fine with us.
Actually, that's what we proposed in the initial report.
Also, these tests are named "extvardeclwithouttype", as such adding a type declaration might well violate the intend of the test.

As such I will not set the bug to fixed, I assume the Testing task Force will decide.

Thanks,
Marc
Comment 6 Carmelo Montanez 2006-06-28 17:58:00 UTC
Marc:

I think adding the extra eoor code as an outcome is more proper as that will be consistent with the test intentions.  As such, I modified the tests and added the extra outcome to the catalog file.

Thanks,
Carmelo
Comment 7 Tom Brosens 2006-07-06 13:12:20 UTC
Issue verified and indeed fixed! Closing.

Thanks,
Tom