You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Till Westmann (JIRA)" <ji...@apache.org> on 2012/06/26 08:37:42 UTC

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

Till Westmann created VXQUERY-38:
------------------------------------

             Summary: 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


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

        

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

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman reassigned VXQUERY-38:
-------------------------------------

    Assignee: Preston Carman
    
> 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
>            Assignee: Preston Carman
>         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

        

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

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman resolved VXQUERY-38.
-----------------------------------

    Resolution: Fixed

The substring tests are now passes the integer argument tests.
                
> 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
>            Assignee: Preston Carman
>         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

        

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

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ 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