Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3456

Implements BindValue : "id is not a known bind variable name in this query"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jackrabbit-spi2dav
    • Labels:
      None
    • Environment:
      Linux

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                elendrim Grégory OLIVER
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: