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 1959 - op-numeric-multiplymix2args-2 can raise XPTY0004 iso FORG0001
Summary: op-numeric-multiplymix2args-2 can raise XPTY0004 iso FORG0001
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.6.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 20:04 UTC by Marc Van Cappellen
Modified: 2006-07-06 13:00 UTC (History)
1 user (show)

See Also:


Attachments

Description Marc Van Cappellen 2005-09-01 20:04:35 UTC
The query op-numeric-multiplymix2args-2.xq expects FORG0001. XPTY0004 seems 
also eligiable.
As specified in <http://www.w3.org/TR/xquery/#id-arithmetic>: If the types of 
the operands, after evaluation, are not a valid combination for the given 
operator, according to the rules in B.2 Operator Mapping, a type error is 
raised [err:XPTY0004].

Our implementation report FORG0001 for this query as the operands are not of 
type xdt:untypedAtomic. Step 4 reads: If the atomized operand is of type 
xdt:untypedAtomic, it is cast to xs:double. If the cast fails, a dynamic error 
is raised. [err:FORG0001]
Comment 1 Ravindranath (Ravi) Chennoju 2005-09-01 23:56:16 UTC
Agree, XPTY0004 is the correct error. Fixed the XQTSCatalog.xml.
Please verify the fix the CLOSE the bug.
Comment 2 Xavier Franc 2006-05-27 00:42:53 UTC
not fixed in 0.9
Comment 3 Xavier Franc 2006-05-27 00:54:36 UTC
sorry, my mistake. The comment was intended for bug #3159
Comment 4 Tom Brosens 2006-07-06 13:00:06 UTC
Issue was fixed for some time already. Closing.