<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14904</bug_id>
          
          <creation_ts>2011-11-22 13:02:26 +0000</creation_ts>
          <short_desc>[QT3TS] op-concat-18 (XPTY0004 vs FOTY0013)</short_desc>
          <delta_ts>2012-05-17 22:41:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60345</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-11-22 13:02:26 +0000</bug_when>
    <thetext>I disagree with the expected error code for test op-concat-18.

Consider the simpler query

&quot;abc&quot; || fn:concat#3

This is equivalent to

fn:concat(&quot;abc&quot;, 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(&quot;abc&quot;), fn:data(fn:concat#3))

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

   &lt;test-case name=&quot;op-concat-18&quot;&gt;
      &lt;description&gt;Can&apos;t have a function item as an argument to concat
&lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2011-06-24&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XP30+ XQ30+&quot;/&gt;
      &lt;test&gt;(&quot;abc&quot; || &quot;abc&quot; ||  fn:concat#3)&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPTY0004&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60950</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-12-05 16:44:04 +0000</bug_when>
    <thetext>fn-string-length-21 has a similarly incorrect error code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61089</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-12-07 14:59:11 +0000</bug_when>
    <thetext>function-item-4 has a similar problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61657</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-12-16 13:09:53 +0000</bug_when>
    <thetext>fn-concat-18 has a similar problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67827</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-17 22:41:32 +0000</bug_when>
    <thetext>Two of these tests appear to have been changed to expect FOTY0013. I have changed the other two.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>