You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Preston Carman (JIRA)" <ji...@apache.org> on 2012/06/29 22:33:44 UTC

[jira] [Updated] (VXQUERY-38) fn:substring off by one

     [ https://issues.apache.org/jira/browse/VXQUERY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman updated VXQUERY-38:
----------------------------------

    Attachment: SubstringError1.patch

Found a few more issues with substring. 
1. Wrong parameters for the iterator.
2. Reset was not being called for the parent iterator.
3. Added a check for end of string to allow for early exiting of the function call, for parameters that don't match the string length.
4. (ticket) Substring is generated correctly.
                
> fn:substring off by one
> -----------------------
>
>                 Key: VXQUERY-38
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-38
>             Project: VXQuery
>          Issue Type: Bug
>            Reporter: Till Westmann
>         Attachments: SubstringError1.patch
>
>
> substring("metadata", 4, 3) should return "ada", it returns "dat"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira