You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Joe Satriani (Created) (JIRA)" <ji...@apache.org> on 2011/11/26 17:21:40 UTC

[jira] [Created] (JCR-3159) LOWER operand with nested LOCALNAME operand not work with SQL2

LOWER operand with nested LOCALNAME operand not work with SQL2
--------------------------------------------------------------

                 Key: JCR-3159
                 URL: https://issues.apache.org/jira/browse/JCR-3159
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: JCR 2.0
    Affects Versions: 2.2.8
         Environment: Java 6
            Reporter: Joe Satriani


Below query was running successful using Query.SQL languange:
SELECT * FROM nt:file WHERE (CONTAINS(*, 'Jon') OR  LOWER(fn:name()) LIKE '%jon%') AND jcr:path LIKE '/Resources/%' ORDER BY jcr:score()

But equivalent next query in Query.JCR_SQL2 will fail with exception UnsupportedRepositoryOperationException():
SELECT * FROM [nt:file] WHERE (CONTAINS([nt:file].*, 'Jon') OR  LOWER(LOCALNAME()) LIKE '%jon%') AND ISDESCENDANTNODE('/Resources') ORDER BY SCORE()

>From my investigation seems LOWER function will not work with nested function LOCALNAME. According to section "6.7.32 LowerCase" JCR 2.0 Specs, LOWER operand able to work on DynamicOperand argument.

--
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] (JCR-3159) LOWER operand with nested LOCALNAME operand not work with SQL2

Posted by "Alex Parvulescu (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu resolved JCR-3159.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4
         Assignee: Alex Parvulescu

Thanks Joe for reporting the issue!

Fixed in revision 1207838.
                
> LOWER operand with nested LOCALNAME operand not work with SQL2
> --------------------------------------------------------------
>
>                 Key: JCR-3159
>                 URL: https://issues.apache.org/jira/browse/JCR-3159
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core, JCR 2.0
>    Affects Versions: 2.2.8
>         Environment: Java 6
>            Reporter: Joe Satriani
>            Assignee: Alex Parvulescu
>             Fix For: 2.4
>
>
> Below query was running successful using Query.SQL languange:
> SELECT * FROM nt:file WHERE (CONTAINS(*, 'Jon') OR  LOWER(fn:name()) LIKE '%jon%') AND jcr:path LIKE '/Resources/%' ORDER BY jcr:score()
> But equivalent next query in Query.JCR_SQL2 will fail with exception UnsupportedRepositoryOperationException():
> SELECT * FROM [nt:file] WHERE (CONTAINS([nt:file].*, 'Jon') OR  LOWER(LOCALNAME()) LIKE '%jon%') AND ISDESCENDANTNODE('/Resources') ORDER BY SCORE()
> From my investigation seems LOWER function will not work with nested function LOCALNAME. According to section "6.7.32 LowerCase" JCR 2.0 Specs, LOWER operand able to work on DynamicOperand argument.

--
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] (JCR-3159) LOWER operand with nested LOCALNAME operand not work with SQL2

Posted by "Joe Satriani (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Satriani updated JCR-3159:
------------------------------

    Component/s: jackrabbit-core
    
> LOWER operand with nested LOCALNAME operand not work with SQL2
> --------------------------------------------------------------
>
>                 Key: JCR-3159
>                 URL: https://issues.apache.org/jira/browse/JCR-3159
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core, JCR 2.0
>    Affects Versions: 2.2.8
>         Environment: Java 6
>            Reporter: Joe Satriani
>
> Below query was running successful using Query.SQL languange:
> SELECT * FROM nt:file WHERE (CONTAINS(*, 'Jon') OR  LOWER(fn:name()) LIKE '%jon%') AND jcr:path LIKE '/Resources/%' ORDER BY jcr:score()
> But equivalent next query in Query.JCR_SQL2 will fail with exception UnsupportedRepositoryOperationException():
> SELECT * FROM [nt:file] WHERE (CONTAINS([nt:file].*, 'Jon') OR  LOWER(LOCALNAME()) LIKE '%jon%') AND ISDESCENDANTNODE('/Resources') ORDER BY SCORE()
> From my investigation seems LOWER function will not work with nested function LOCALNAME. According to section "6.7.32 LowerCase" JCR 2.0 Specs, LOWER operand able to work on DynamicOperand argument.

--
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] (JCR-3159) LOWER operand with nested LOCALNAME operand not work with SQL2

Posted by "Alex Parvulescu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu updated JCR-3159:
---------------------------------

      Component/s:     (was: JCR 2.0)
                       (was: jackrabbit-core)
                   query
    Fix Version/s:     (was: 2.4)
                   2.3.5
    
> LOWER operand with nested LOCALNAME operand not work with SQL2
> --------------------------------------------------------------
>
>                 Key: JCR-3159
>                 URL: https://issues.apache.org/jira/browse/JCR-3159
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 2.2.8
>         Environment: Java 6
>            Reporter: Joe Satriani
>            Assignee: Alex Parvulescu
>             Fix For: 2.3.5
>
>
> Below query was running successful using Query.SQL languange:
> SELECT * FROM nt:file WHERE (CONTAINS(*, 'Jon') OR  LOWER(fn:name()) LIKE '%jon%') AND jcr:path LIKE '/Resources/%' ORDER BY jcr:score()
> But equivalent next query in Query.JCR_SQL2 will fail with exception UnsupportedRepositoryOperationException():
> SELECT * FROM [nt:file] WHERE (CONTAINS([nt:file].*, 'Jon') OR  LOWER(LOCALNAME()) LIKE '%jon%') AND ISDESCENDANTNODE('/Resources') ORDER BY SCORE()
> From my investigation seems LOWER function will not work with nested function LOCALNAME. According to section "6.7.32 LowerCase" JCR 2.0 Specs, LOWER operand able to work on DynamicOperand argument.

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