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 14904 - [QT3TS] op-concat-18 (XPTY0004 vs FOTY0013)
Summary: [QT3TS] op-concat-18 (XPTY0004 vs FOTY0013)
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 13:02 UTC by Tim Mills
Modified: 2012-05-17 22:41 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2011-11-22 13:02:26 UTC
I disagree with the expected error code for test op-concat-18.

Consider the simpler query

"abc" || fn:concat#3

This is equivalent to

fn:concat("abc", fn:concat#3)

and because the expected type of arguments to fn:concat is xs:anyAtomicType?, section 3.1.5.2 Function Conversion Rules apply, giving

fn:concat(fn:data("abc"), fn:data(fn:concat#3))

fn:data(fn:concat#3) will raise err:FOTY0013.

   <test-case name="op-concat-18">
      <description>Can't have a function item as an argument to concat
</description>
      <created by="Michael Kay" on="2011-06-24"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>("abc" || "abc" ||  fn:concat#3)</test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>
Comment 1 Tim Mills 2011-12-05 16:44:04 UTC
fn-string-length-21 has a similarly incorrect error code.
Comment 2 Tim Mills 2011-12-07 14:59:11 UTC
function-item-4 has a similar problem
Comment 3 Tim Mills 2011-12-16 13:09:53 UTC
fn-concat-18 has a similar problem.
Comment 4 Michael Kay 2012-05-17 22:41:32 UTC
Two of these tests appear to have been changed to expect FOTY0013. I have changed the other two.