jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3456) Implements BindValue : "id is not a known bind variable name in this query"
Date Thu, 25 Apr 2013 12:02:16 GMT

    [ https://issues.apache.org/jira/browse/JCR-3456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13641703#comment-13641703
] 

Julian Reschke commented on JCR-3456:
-------------------------------------

I assume this affects 2.7 and 2.6 as well? Also, are you working on a patch? Otherwise setting
"fix version" to 2.4.4 is kind of misleading :-)
                
> Implements BindValue : "id is not a known bind variable name in this query"
> ---------------------------------------------------------------------------
>
>                 Key: JCR-3456
>                 URL: https://issues.apache.org/jira/browse/JCR-3456
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-spi2dav
>    Affects Versions: 2.4.3
>         Environment: Linux
>            Reporter: Grégory OLIVER
>             Fix For: 2.4.4
>
>
> ValueFactory vf = session.getValueFactory();
> QueryManager queryMgr = session.getWorkspace().getQueryManager();
> String expression = "SELECT * FROM [nt:unstructured] WHERE id = $id ";
> Query query = queryMgr.createQuery(expression,Query.JCR_SQL2);
> query.bindValue("id", vf.createValue(id)); 
> QueryResult result = query.execute();
> >> failed with spi2dav because it doesn't seems to be implemented.
> Exception thrown a  "id is not a known bind variable name in this query".
> When I check the code, I found a possible reason in the org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.checkQueryStatement
: 
> // TODO implement

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message