chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Guillaume ...@nuxeo.com>
Subject Re: OpenCMIS SQL Parsing question
Date Tue, 09 Sep 2014 14:41:57 GMT
Hi,

The CMIS query language is a subset of SQL-92, and SQL-92 does not
allow slashes in identifiers. See SQL-92 ยง 5.2 Syntax Rules.

You could change the code as you suggest, but then your server
wouldn't be CMIS compliant, and many CMIS clients would fail with it.

Florent


On Fri, Sep 5, 2014 at 8:22 PM,  <Robert.Williams3@wellsfargo.com> wrote:
> Hello,
>
> I am new to CMIS and I am currently using the Example Query code for the basis of my
Query processing.  Additionally, I am using the OpenCMIS FileShare and InMemory servers as
the starting point for my CMIS Server.
>
> At present, I am able to successfully parse CMIS SQL statements with the following exception.
 When I introduce an attribute into the select list that contains a forward slash such as
CaptureInfo/WLS_EndImageAddress, I get the following message:
>
>          <faultstring>Query parsing failed: Syntax error in query: Line 1:413 rule
query failed predicate: {CaptureInfo is not a property query name in any of the types in from
...}?</faultstring>
>
> It appears that ANTLR is tokenizing the select list using in part the forward slash.
>
> So, here is my question.  How can I modify the ANTLR grammar so that it recognizes the
text CaptureInfo/WLS_EndImageAddress as a single attribute?
>
> Thanks in advance for your help!
>
>



-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Content Management Platform for Business Apps
http://www.nuxeo.com   http://community.nuxeo.com

Mime
View raw message