OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cmis message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (CMIS-527) BNF Grammar Quoteissues



    [ http://tools.oasis-open.org/issues/browse/CMIS-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869#action_15869 ] 

Florent Guillaume commented on CMIS-527:
----------------------------------------

I don't think its a good idea to allow both kinds of quotes. It doesn't bring anything, I'd rather we be strict here.
Proposal: in our BFN use
  <quote> ::= '  (single-quote char)
Let's follow SQL-92.


On a related note, I think we need to allow escaping of an identifier in case it's a reserved word.
Our BNF has:
  <identifier> ::= !! As defined by queryName attribute. 
SQL-92 expands:
  <identifier> ::= [ <introducer><character set specification> ] <actual identifier>
  <actual identifier> ::= <regular identifier> | <delimited identifier>
  <delimited identifier> ::= <double quote> <delimited identifier body> <double quote>
Proposal: use in our BNF:
  <identifier> ::= <regular identifier> | <delimited identifier>
  <regular identifier> ::= !! As defined by queryName attribute. 
  <delimited identifier> ::= <double quote> <regular identifier> <double quote>
  <double quote> ::= "  (double-quote char)


> BNF Grammar Quote issues
> ------------------------
>
>                 Key: CMIS-527
>                 URL: http://tools.oasis-open.org/issues/browse/CMIS-527
>             Project: OASIS Content Management Interoperability Services (CMIS) TC
>          Issue Type: Bug
>          Components: Domain Model
>            Reporter: Ryan McVeigh
>            Assignee: Ethan Gur-esh
>
> CMIS defers to SQL-92 for the description of <character string literal>.  SQL-92 (http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt) defines a character string literal as delimited by <quote>, which is defined as <quote> ::= ', that is, a single-quote character.
> CMIS BNF defines <quote> ::= '"' | "'", that is either a single- or double-quote character.
>           - Is CMIS attempting to "override" or "extend" the SQL definition of the <quote> production, or is CMIS's usage unique to where it is explicitly used in the CMIS text.
>           - Specifically, does CMIS's <quote> affect the <character string literal> as defined in SQL-92?
> The <text search expression> for the CONTAINS operator is specified to be delimited only by double-quote characters, not the single-quotes prescribed for SQL-92 strings, nor the "either-quotes" used within the expression itself.  The <datetime literal> is delimited with "either-quotes", unlike character string literals.  The example in section 2.10.2.4.2.3 uses double-quotes, which hints that maybe CMIS is trying to override SQL's definition of <quote>.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]