Hi,

I am having an issue with a specific type of CMISQL query that fails to be 
parsed in OpenCMIS 0.3.0 by the CmisQlStrictParser class. I have checked the 
CMIS 1.0 specs and believe the query I have written is valid, however I would 
like someone else to look at the query and double check it. The query criteria 
filters on a repeating attribute that is not equal to a specific value. In the 
query below, the keywords attribute is a repeating string. The exception is 
thrown when QueryUtil.getWalker(...) is called and hits line 57, where it 
checks the parser for errors. The error message in the parser says "line 1:114 
mismatched input '<>' expecting EQ".

/*
Lines 56 to 59 from QueryWalker class
*/
        query_return parsedStatement = parser.query();
        if (parser.hasErrors()) {
            throw new CmisInvalidArgumentException(parser.getErrorMessages());
        }

/*
My query
*/
select cmis:objectId, cmis:name, cmis:contentStreamLength, keywords from 
my_doc_type where 'keyword1' <> any keywords



Thanks,

Randy

Reply via email to