incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Preston Carman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VXQUERY-38) fn:substring off by one
Date Fri, 29 Jun 2012 20:33:44 GMT

     [ 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

        

Mime
View raw message